v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-173040119.6 KB
events

Updates an event.

put/calendars/{calendarId}/events/{eventId}

Path parameters

calendarIdstring required

Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword

eventIdstring required

Event identifier

Query parameters

conferenceDataVersioninteger

Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0

maxAttendeesinteger

The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional

sendUpdates'all' | 'externalOnly' | 'none'

Guests who should receive notifications about the event update (for example, title changes, etc.)

supportsAttachmentsboolean

Whether API client performing operation supports event attachments. Optional. The default is False

Request body

colorIdstring

The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional

hangoutLinkstring

An absolute link to the Google Hangout associated with this event. Read-only

attendeesOmittedboolean

Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False

descriptionstring

Description of the event. Can contain HTML. Optional

guestsCanModifyboolean

Whether attendees other than the organizer can modify the event. Optional. The default is False

recurringEventIdstring

For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable

endTimeUnspecifiedboolean

Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False

guestsCanSeeOtherGuestsboolean

Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True

idstring

Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:

  • characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
  • the length of the ID must be between 5 and 1024 characters
  • the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122. If you do not specify an ID, it will be automatically generated by the server. Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs
lockedboolean

Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only

anyoneCanAddSelfboolean

Whether anyone can invite themselves to the event (deprecated). Optional. The default is False

summarystring

Title of the event

privateCopyboolean

If set to True, Event propagation is disabled. Note that it is not the same thing as Private event properties. Optional. Immutable. The default is False

visibilitystring

Visibility of the event. Optional. Possible values are:

  • "default" - Uses the default visibility for events on the calendar. This is the default value.
  • "public" - The event is public and event details are visible to all readers of the calendar.
  • "private" - The event is private and only event attendees may view event details.
  • "confidential" - The event is private. This value is provided for compatibility reasons
createdstring date-time

Creation time of the event (as a RFC3339 timestamp). Read-only

htmlLinkstring

An absolute link to this event in the Google Calendar Web UI. Read-only

kindstring

Type of the resource ("calendar#event")

iCalUIDstring

Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method. Note that the iCalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same iCalUIDs. To retrieve an event using its iCalUID, call the events.list method using the iCalUID parameter. To retrieve an event using its id, call the events.get method

eventTypestring

Specific type of the event. This cannot be modified after the event is created. Possible values are:

  • "default" - A regular event or not further specified.
  • "outOfOffice" - An out-of-office event.
  • "focusTime" - A focus-time event.
  • "workingLocation" - A working location event. Currently, only "default " and "workingLocation" events can be created using the API. Extended support for other event types will be made available in later releases
recurrencestring[]

List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events

sequenceinteger

Sequence number as per iCalendar

transparencystring

Whether the event blocks time on the calendar. Optional. Possible values are:

  • "opaque" - Default value. The event does block time on the calendar. This is equivalent to setting Show me as to Busy in the Calendar UI.
  • "transparent" - The event does not block time on the calendar. This is equivalent to setting Show me as to Available in the Calendar UI
etagstring

ETag of the resource

locationstring

Geographic location of the event as free-form text. Optional

guestsCanInviteOthersboolean

Whether attendees other than the organizer can invite others to the event. Optional. The default is True

updatedstring date-time

Last modification time of the event (as a RFC3339 timestamp). Read-only

statusstring

Status of the event. Optional. Possible values are:

  • "confirmed" - The event is confirmed. This is the default status.
  • "tentative" - The event is tentatively confirmed.
  • "cancelled" - The event is cancelled (deleted). The list method returns cancelled events only on incremental sync (when syncToken or updatedMin are specified) or if the showDeleted flag is set to true. The get method always returns them. A cancelled status represents two different states depending on the event type:
  • Cancelled exceptions of an uncancelled recurring event indicate that this instance should no longer be presented to the user. Clients should store these events for the lifetime of the parent recurring event. Cancelled exceptions are only guaranteed to have values for the id, recurringEventId and originalStartTime fields populated. The other fields might be empty.
  • All other cancelled events represent deleted events. Clients should remove their locally synced copies. Such cancelled events will eventually disappear, so do not rely on them being available indefinitely. Deleted events are only guaranteed to have the id field populated. On the organizer's calendar, cancelled events continue to expose event details (summary, location, etc.) so that they can be restored (undeleted). Similarly, the events to which the user was invited and that they manually removed continue to provide details. However, incremental sync requests with showDeleted set to false will not return these details. If an event changes its organizer (for example via the move operation) and the original organizer is not on the attendee list, it will leave behind a cancelled event where only the id field is guaranteed to be populated

Response

A gcalendar:Event if successful, otherwise an error

colorIdstring

The color of the event. This is an ID referring to an entry in the event section of the colors definition (see the colors endpoint). Optional

hangoutLinkstring

An absolute link to the Google Hangout associated with this event. Read-only

attendeesOmittedboolean

Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the maxAttendee query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False

descriptionstring

Description of the event. Can contain HTML. Optional

guestsCanModifyboolean

Whether attendees other than the organizer can modify the event. Optional. The default is False

recurringEventIdstring

For an instance of a recurring event, this is the id of the recurring event to which this instance belongs. Immutable

endTimeUnspecifiedboolean

Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False

guestsCanSeeOtherGuestsboolean

Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True

idstring

Opaque identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:

  • characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
  • the length of the ID must be between 5 and 1024 characters
  • the ID must be unique per calendar Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122. If you do not specify an ID, it will be automatically generated by the server. Note that the icalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same icalUIDs
lockedboolean

Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only

anyoneCanAddSelfboolean

Whether anyone can invite themselves to the event (deprecated). Optional. The default is False

summarystring

Title of the event

privateCopyboolean

If set to True, Event propagation is disabled. Note that it is not the same thing as Private event properties. Optional. Immutable. The default is False

visibilitystring

Visibility of the event. Optional. Possible values are:

  • "default" - Uses the default visibility for events on the calendar. This is the default value.
  • "public" - The event is public and event details are visible to all readers of the calendar.
  • "private" - The event is private and only event attendees may view event details.
  • "confidential" - The event is private. This value is provided for compatibility reasons
createdstring date-time

Creation time of the event (as a RFC3339 timestamp). Read-only

htmlLinkstring

An absolute link to this event in the Google Calendar Web UI. Read-only

kindstring

Type of the resource ("calendar#event")

iCalUIDstring

Event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method. Note that the iCalUID and the id are not identical and only one of them should be supplied at event creation time. One difference in their semantics is that in recurring events, all occurrences of one event have different ids while they all share the same iCalUIDs. To retrieve an event using its iCalUID, call the events.list method using the iCalUID parameter. To retrieve an event using its id, call the events.get method

eventTypestring

Specific type of the event. This cannot be modified after the event is created. Possible values are:

  • "default" - A regular event or not further specified.
  • "outOfOffice" - An out-of-office event.
  • "focusTime" - A focus-time event.
  • "workingLocation" - A working location event. Currently, only "default " and "workingLocation" events can be created using the API. Extended support for other event types will be made available in later releases
recurrencestring[]

List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in this field; event start and end times are specified in the start and end fields. This field is omitted for single events or instances of recurring events

sequenceinteger

Sequence number as per iCalendar

transparencystring

Whether the event blocks time on the calendar. Optional. Possible values are:

  • "opaque" - Default value. The event does block time on the calendar. This is equivalent to setting Show me as to Busy in the Calendar UI.
  • "transparent" - The event does not block time on the calendar. This is equivalent to setting Show me as to Available in the Calendar UI
etagstring

ETag of the resource

locationstring

Geographic location of the event as free-form text. Optional

guestsCanInviteOthersboolean

Whether attendees other than the organizer can invite others to the event. Optional. The default is True

updatedstring date-time

Last modification time of the event (as a RFC3339 timestamp). Read-only

statusstring

Status of the event. Optional. Possible values are:

  • "confirmed" - The event is confirmed. This is the default status.
  • "tentative" - The event is tentatively confirmed.
  • "cancelled" - The event is cancelled (deleted). The list method returns cancelled events only on incremental sync (when syncToken or updatedMin are specified) or if the showDeleted flag is set to true. The get method always returns them. A cancelled status represents two different states depending on the event type:
  • Cancelled exceptions of an uncancelled recurring event indicate that this instance should no longer be presented to the user. Clients should store these events for the lifetime of the parent recurring event. Cancelled exceptions are only guaranteed to have values for the id, recurringEventId and originalStartTime fields populated. The other fields might be empty.
  • All other cancelled events represent deleted events. Clients should remove their locally synced copies. Such cancelled events will eventually disappear, so do not rely on them being available indefinitely. Deleted events are only guaranteed to have the id field populated. On the organizer's calendar, cancelled events continue to expose event details (summary, location, etc.) so that they can be restored (undeleted). Similarly, the events to which the user was invited and that they manually removed continue to provide details. However, incremental sync requests with showDeleted set to false will not return these details. If an event changes its organizer (for example via the move operation) and the original organizer is not on the attendee list, it will leave behind a cancelled event where only the id field is guaranteed to be populated