Events: move

Requires authorization

Moves an event to another calendar, i.e. changes an event's organizer. Try it now or see an example.

Request

HTTP request

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

Parameters

Parameter name Value Description
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:
  • "all": Notifications are sent to all guests.
  • "externalOnly": Notifications are sent to non-Google Calendar guests only.
  • "none": No notifications are sent. This value should only be used for migration use cases (note that in most migration cases the import method should be used).

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/calendar
https://www.googleapis.com/auth/calendar.events

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).

Java

Uses the Java client library.

import com.google.api.services.calendar.Calendar;
import com.google.api.services.calendar.model.Event;

// ...

// Initialize Calendar service with valid OAuth credentials
Calendar service = new Calendar.Builder(httpTransport, jsonFactory, credentials)
    .setApplicationName("applicationName").build();

// Move an event to another calendar
Event updatedEvent =
    service.events().move('primary', "eventId", "destinationCalendarId").execute();

System.out.println(updatedEvent.getUpdated());

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.updated

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Send feedback about...

Calendar API
Calendar API
Need help? Visit our support page.