VinnyQ77
VinnyQ77

Reputation: 435

Updating/Patching an event via the Google Calendar API as the Organizer of the event doesn't work

Overview: can't update or patch an event using the Google Calendar API as the organizer of the event (as documented here https://developers.google.com/calendar/api/v3/reference/events/patch).

To reproduce:

  1. Create an event with user 1 (creator)

  2. Pass ownership of the event to user 2 (organizer), so that the organizer of the event is not the same as the creator

  3. call PATCH https://www.googleapis.com/calendar/v3/calendars/<calendarId>/events/<eventId> changing the summary or description (e.g. { "summary": "a new summary" }), using auth_token from user 2 (the organizer).

The response of the patch will be 200 SUCCESS, but the event itself is not changed.

  1. making the same PATCH request in step 3 using the auth_token of user 1 (the creator) will both response 200 SUCCESS and do change the event.

Thank you if anyone can confirm this or has any other insights!

Upvotes: 0

Views: 1126

Answers (1)

VinnyQ77
VinnyQ77

Reputation: 435

Ah ok, I was mistaken and made a few bad choices when testing.

I got the users (creator and organizer) mixed up in Step 4 during my testing and Nazia was right, the organizer of the event will be the only person that can patch/update the event once ownership is transferred, unless permissions is given to Guests to allow editing of the event (check the "Modify event" checkbox under "Guest permissions" when editing the event as the organizer).

Even the creator of the event will not have permissions (API or otherwise) to edit the event unless that permission is given.

Upvotes: 1

Related Questions