- Home
- Guides
- Reference
- Support
Moves an event to another calendar, i.e. changes an event's organizer. Try it now or see an example.
Request
HTTP request
POST //www.googleapis.com/calendar/v3/calendars/calendarId/events/eventId/moveParameters
Path parameters | ||
calendarId | string | Calendar identifier of the source calendar where the event currently is on. |
eventId | string | Event identifier. |
Required query parameters | ||
destination | string | Calendar identifier of the target calendar where the event is to be moved to. |
Optional query parameters | ||
sendNotifications | boolean | Deprecated. Please use sendUpdates instead. Whether to send notifications about the change of the event's organizer. Note that some emails might still be sent even if you set the value to false. The default is false. |
sendUpdates | string | Guests who should receive notifications about the change of the event's organizer. Acceptable values are:
|
Authorization
This request requires authorization with at least one of the following scopes:
//www.googleapis.com/auth/calendar |
//www.googleapis.com/auth/calendar.events |
For more information, see the authentication and authorization page.
Request body
Do not supply a request body with this method.
Response
If successful, this method returns an Events resource in the response body.
Examples
Note: The code examples available for this method do not represent all supported programming languages (see the client libraries page for a list of supported languages).
Uses the Java client library.Java
Python
Uses the Python client library.
# First retrieve the event from the API. updated_event = service.events().move( calendarId='primary', eventId='eventId', destination='destinationCalendarId').execute() # Print the updated date. print updated_event['updated']PHP
Uses the PHP client library.
$result = $service->events->move('primary', 'eventId', 'destinationCalendarId'); // Print the updated date. echo $result->getUpdated();Ruby
Uses the Ruby client library.
result = client.move_event('primary', 'eventId', 'destinationCalendarId') print result.updatedTry it!
Use the APIs Explorer below to call this method on live data and see the response.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-06-29 UTC.
[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"Missing the information I need" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"Too complicated / too many steps" },{ "type": "thumb-down", "id": "outOfDate", "label":"Out of date" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"Samples / code issue" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }] [{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]