I’m having trouble with event modifications through the Google Calendar API when an attendee tries to update an event that has guest modification permissions enabled.
The situation:
The event creator sets up a calendar event with guestsCanModify: true. When an invited participant attempts to modify this event using the Calendar API, the changes only appear on their personal calendar. The original event remains unchanged and shows a message about local-only modifications.
However, when the same participant makes changes through the web interface at calendar.google.com, those updates properly sync back to the main event and appear on everyone’s calendar.
My current approach:
I’m using the events.patch endpoint with the participant’s calendar ID, the event ID, and a request body containing the fields I want to update like title or description.
Code example:
Here’s how I’m trying to update an event as an invited participant:
const eventData = {
"kind": "calendar#event",
"id": "meeting123456",
"status": "confirmed",
"title": "Team Discussion",
"details": "Review project status.",
"host": {
"email": "[email protected]",
"name": "Team Manager"
},
"participants": [
{
"email": "[email protected]",
"name": "Team Manager",
"host": true,
"status": "accepted"
},
{
"email": "[email protected]",
"self": true,
"status": "tentative"
}
],
"allowGuestEdits": true
};
// Update request
fetch(`https://www.googleapis.com/calendar/v3/calendars/member%40company.com/events/meeting123456`, {
method: 'PATCH',
headers: {
'Authorization': 'Bearer ' + accessToken,
'Content-Type': 'application/json'
},
body: JSON.stringify({"title": "Updated Team Discussion"})
});
The modification only shows up locally for the participant, not on the host’s calendar. What am I missing in my API implementation that the web interface handles correctly?