Morsey
Morsey

Reputation: 28

Use Google Calendar API to change owner

I have multiple events I am creating in a google calendar using the API via python. Each event has a google meet attached to it.

Once I have created the events I would like to change ownership of the events to another user. This will allow them to act as hosts for the meeting.

I can do this via the calendar website, by clicking the three dots and selecting "Change Owner".

I cannot find any way to do this via the API. Am I missing something?

Upvotes: 0

Views: 3410

Answers (2)

ale13
ale13

Reputation: 6072

As claimed by the Events resource documentation:

creator > The creator of the event. Read-only.

organizer > The organizer of the event. To change the organizer, use the move operation. Read-only, except when importing an event.

As for the move operation, you will have to make a request like this:

POST https://www.googleapis.com/calendar/v3/calendars/calendarId/events/eventId/move

Depending on the exact operations you want to make, you might benefit from making use of creating a service account and performing domain wide delegation.

Reference

Upvotes: 0

Adithya
Adithya

Reputation: 1728

Looks like you are looking for move API You can refer this https://developers.google.com/calendar/v3/reference/events/move

Upvotes: 1

Related Questions