WOOOOOO HOOOOOOO!!!!! I got it!

I wasn't including the xmlns:docs='http://schemas.google.com/docs/
2007' attribute in the XML when I was doing the "PUT"

once I did that, the server recognized the <docs:writersCanInvite
value='false' /> node.

anyway, thanks for all of your patience with me Eric!!!

Daniel

On Apr 7, 7:30 pm, Daniel Marashlian <[email protected]> wrote:
> does the API NOT support the writersCanInvite attribute when updating
> a document's metadata?
>
> On Apr 7, 10:39 am, Daniel Marashlian <[email protected]> wrote:
>
> > Well I figured out how to update the file name on the v2 protocol by
> > adding in the "If-Match: *" to the headers and using the new style of
> > the URL
>
> > PUT /feeds/documents/private/full/document%3Adocument_id
>
> > but if I add the <docs:writersCanInvite value='false' /> node to the
> > XML it always gives me the 400 error.
>
> > that's as far as I can get :)
>
> > haha,
> > Daniel
>
> > On Apr 7, 9:59 am, Daniel Marashlian <[email protected]> wrote:
>
> > > I'm assuming I can't use the writersCanInvite in the v1 protocol. Am I
> > > correct?
>
> > > On Apr 6, 10:09 pm, Daniel Marashlian <[email protected]> wrote:
>
> > > > Ok, I get it now... I needed to GET the information on the document
> > > > first to get the href attribute's value so I can do a PUT to that URL
> > > > to update the metadata.
>
> > > > I can successfully update the file name now :)
>
> > > > So that's the first step to solving my "real" issue. I need to be able
> > > > to set the writersCanInvite attribute to false on an existing
> > > > document.
>
> > > > By using this method on editing the metadata on a document it's giving
> > > > me a "The remote server returned an error: (400) Bad Request." error.
>
> > > > This is the XML I'm passing to the PUT request (to the correct URL
> > > > now)
>
> > > > "<?xml version='1.0' encoding='UTF-8'?><atom:entry 
> > > > xmlns:atom='http://www.w3.org/2005/Atom'><atom:category 
> > > > scheme='http://schemas.google.com/
> > > > g/2005#kind' term='http://schemas.google.com/docs/2007#document'
> > > > label='document'/><docs:writersCanInvite value='false' /></
> > > > atom:entry>"
>
> > > > That's the same node I passed while creating a NEW Google Doc
> > > > (<docs:writersCanInvite value='false' />), but if I try to use the
> > > > same technique on editing metadata, it's not working...
>
> > > > Almost there...
> > > > thanks for all of the help Eric!!!
>
> > > > Daniel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to