OK- I got it to work, so maybe this will help someone. The only thing that would work for me was to re-request the event using the URL in the <id> element right before updating and then use the "edit" URL in the resulting document.
Thanks for reading :) On Dec 7, 1:24 pm, Herrick <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to update an event right after getting the event feed > using the edit URL. > The response is invariably: 400 Invalid Request "Entry contains > neither gd:when nor gd:recurrence element." > But as you can see, the request certainly does have the gd:when > element (with any identifying information replaced with # characters). > I have also tried doing a plain PUT instead of an override. I am > writing my own custom code, but I believe this is a correct request. > > Any solutions? > > POST /calendar/feeds/default/private/full/6phdmlor745q43h9u5qs8rqbcg/ > 63332734859?gsessionid=######## HTTP/1.1 > Host:www.google.com > Accept: */* > Authorization: GoogleLogin > auth=##################################################################################### > Content-Type: application/atom+xml > Cookie: S=calendar=############ > X-Http-Method-Override: PUT > Content-Length: 1658 > Expect: 100-continue > > <?xml version="1.0"?> > <entry> > <id>http://www.google.com/calendar/feeds/default/private/full/ > ##################</id> > <published>2007-12-07T18:20:59.000Z</published> > <updated>2007-12-07T18:20:59.000Z</updated> > <category scheme="http://schemas.google.com/g/2005#kind" term="http:// > schemas.google.com/g/2005#event"/> > <title type="text">Test6-new</title> > <content type="text">Test6</content> > <link rel="alternate" type="text/html" href="http://www.google.com/ > calendar/event?eid=##################" title="alternate"/> > <link rel="self" type="application/atom+xml" > href="http://www.google.com/calendar/feeds/default/private/full/################"/> > <link rel="edit" type="application/atom+xml" > href="http://www.google.com/calendar/feeds/default/private/full/#############/####..."/> > <author> > <name>Herrick</name> > <email>#######</email> > </author> > <gd:comments> > <gd:feedLink > href="http://www.google.com/calendar/feeds/default/ > private/full/###########/comments"/> > </gd:comments> > <gd:eventStatus value="http://schemas.google.com/g/ > 2005#event.confirmed"/> > <gd:visibility value="http://schemas.google.com/g/2005#event.default"/ > > <gd:transparency value="http://schemas.google.com/g/ > 2005#event.opaque"/> > <gCal:uid value="[EMAIL PROTECTED]"/> > <gCal:sequence value="0"/> > <gd:when startTime="2007-12-03T23:30:00.000Z" > endTime="2007-12-04T00:00:00.000Z"/> > <gd:who rel="http://schemas.google.com/g/2005#event.organizer" > valueString="Herrick" email="#############"/> > <gd:where valueString=""/> > </entry> > HTTP/1.1 400 Bad Request > Content-Type: text/plain; charset=UTF-8 > Transfer-Encoding: chunked > Cache-control: private > Date: Fri, 07 Dec 2007 20:15:26 GMT > Server: GFE/1.3 > > 39 > Entry contains neither gd:when nor gd:recurrence element. > 0 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" 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-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
