The Calendar API provides different flavors of event resources, more information can be found in About events .
For a list of methods for this resource, see the end of this page.
Resource representations
{ "kind" : "calendar#event" , "etag" : etag , "id" : string , "status" : string , "htmlLink" : string , "created" : datetime , "updated" : datetime , "summary" : string , "description" : string , "location" : string , "colorId" : string , "creator" : { "id" : string , "email" : string , "displayName" : string , "self" : boolean } , "organizer" : { "id" : string , "email" : string , "displayName" : string , "self" : boolean } , "start" : { "date" : date , "dateTime" : datetime , "timeZone" : string } , "end" : { "date" : date , "dateTime" : datetime , "timeZone" : string } , "endTimeUnspecified" : boolean , "recurrence" : [ string ], "recurringEventId" : string , "originalStartTime" : { "date" : date , "dateTime" : datetime , "timeZone" : string } , "transparency" : string , "visibility" : string , "iCalUID" : string , "sequence" : integer , "attendees" : [ { "id" : string , "email" : string , "displayName" : string , "organizer" : boolean , "self" : boolean , "resource" : boolean , "optional" : boolean , "responseStatus" : string , "comment" : string , "additionalGuests" : integer } ], "attendeesOmitted" : boolean , "extendedProperties" : { "private" : { ( key ) : string } , "shared" : { ( key ) : string } } , "hangoutLink" : string , "conferenceData" : { "createRequest" : { "requestId" : string , "conferenceSolutionKey" : { "type" : string } , "status" : { "statusCode" : string } } , "entryPoints" : [ { "entryPointType" : string , "uri" : string , "label" : string , "pin" : string , "accessCode" : string , "meetingCode" : string , "passcode" : string , "password" : string } ], "conferenceSolution" : { "key" : { "type" : string } , "name" : string , "iconUri" : string } , "conferenceId" : string , "signature" : string , "notes" : string , } , "gadget" : { "type" : string , "title" : string , "link" : string , "iconLink" : string , "width" : integer , "height" : integer , "display" : string , "preferences" : { ( key ) : string } } , "anyoneCanAddSelf" : boolean , "guestsCanInviteOthers" : boolean , "guestsCanModify" : boolean , "guestsCanSeeOtherGuests" : boolean , "privateCopy" : boolean , "locked" : boolean , "reminders" : { "useDefault" : boolean , "overrides" : [ { "method" : string , "minutes" : integer } ] } , "source" : { "url" : string , "title" : string } , "workingLocationProperties" : { "type" : string , "homeOffice" : ( value ) , "customLocation" : { "label" : string } , "officeLocation" : { "buildingId" : string , "floorId" : string , "floorSectionId" : string , "deskId" : string , "label" : string } } , "outOfOfficeProperties" : { "autoDeclineMode" : string , "declineMessage" : string } , "focusTimeProperties" : { "autoDeclineMode" : string , "declineMessage" : string , "chatStatus" : string } , "attachments" : [ { "fileUrl" : string , "title" : string , "mimeType" : string , "iconLink" : string , "fileId" : string } ], "birthdayProperties" : { "contact" : string , "type" : string , "customTypeName" : string } , "eventType" : string }
anyoneCanAddSelf
boolean
attendeesOmitted
boolean
maxAttendee
query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.attendees[]
list
attendees[].
additionalGuests
integer
attendees[].
displayName
string
attendees[].
email
string
Required when adding an attendee.
attendees[].
id
string
attendees[].
optional
boolean
attendees[].
organizer
boolean
attendees[].
resource
boolean
attendees[].
responseStatus
string
- "
needsAction
" - The attendee has not responded to the invitation (recommended for new events). - "
declined
" - The attendee has declined the invitation. - "
tentative
" - The attendee has tentatively accepted the invitation. - "
accepted
" - The attendee has accepted the invitation.
attendees[].
self
boolean
birthdayProperties
nested object
eventType
is "birthday"
. Immutable. birthdayProperties.
contact
string
"people/c12345"
. Read-only. birthdayProperties.
customTypeName
string
birthdayProperties.type
is set to "custom"
. Read-only. birthdayProperties.
type
string
-
"anniversary"
- An anniversary other than birthday. Always has acontact
. -
"birthday"
- A birthday event. This is the default value. -
"custom"
- A special date whose label is further specified in thecustomTypeName
field. Always has acontact
. -
"other"
- A special date which does not fall into the other categories, and does not have a custom label. Always has acontact
. -
"self"
- Calendar owner's own birthday. Cannot have acontact
.
"birthday"
. The type cannot be changed after the event is created.colorId
string
event
section of the colors definition (see the colors endpoint
). Optional.conferenceData
nested object
createRequest
field. To persist your changes, remember to set the conferenceDataVersion
request parameter to 1
for all event modification requests. conferenceData.
conferenceId
string
Can be used by developers to keep track of conferences, should not be displayed to users.
The ID value is formed differently for each conference solution type:
-
eventHangout
: ID is not set. (This conference type is deprecated.) -
eventNamedHangout
: ID is the name of the Hangout. (This conference type is deprecated.) -
hangoutsMeet
: ID is the 10-letter meeting code, for exampleaaa-bbbb-ccc
. -
addOn
: ID is defined by the third-party provider.
conferenceData.
conferenceSolution
nested object
Unset for a conference with a failed create request.
Either conferenceSolution
and at least one entryPoint
, or createRequest
is required.
conferenceData.conferenceSolution.
iconUri
string
conferenceData.conferenceSolution.
key
nested object
conferenceData.conferenceSolution.key.
type
string
If a client encounters an unfamiliar or empty type, it should still be able to display the entry points. However, it should disallow modifications.
The possible values are:
-
"eventHangout"
for Hangouts for consumers (deprecated; existing events may show this conference solution type but new conferences cannot be created) -
"eventNamedHangout"
for classic Hangouts for Google Workspace users (deprecated; existing events may show this conference solution type but new conferences cannot be created) -
"hangoutsMeet"
for Google Meet (http://meet.google.com) -
"addOn"
for 3P conference providers
conferenceData.conferenceSolution.
name
string
conferenceData.
createRequest
nested object
status
field. Either conferenceSolution
and at least one entryPoint
, or createRequest
is required.
conferenceData.createRequest.
conferenceSolutionKey
nested object
conferenceData.createRequest.conferenceSolutionKey.
type
string
If a client encounters an unfamiliar or empty type, it should still be able to display the entry points. However, it should disallow modifications.
The possible values are:
-
"eventHangout"
for Hangouts for consumers (deprecated; existing events may show this conference solution type but new conferences cannot be created) -
"eventNamedHangout"
for classic Hangouts for Google Workspace users (deprecated; existing events may show this conference solution type but new conferences cannot be created) -
"hangoutsMeet"
for Google Meet (http://meet.google.com) -
"addOn"
for 3P conference providers
conferenceData.createRequest.
requestId
string
Clients should regenerate this ID for every new request. If an ID provided is the same as for the previous request, the request is ignored.
conferenceData.createRequest.
status
nested object
conferenceData.createRequest.status.
statusCode
string
The possible values are:
-
"pending"
: the conference create request is still being processed. -
"success"
: the conference create request succeeded, the entry points are populated. -
"failure"
: the conference create request failed, there are no entry points.
conferenceData.
entryPoints[]
list
All of them must belong to the same conference.
Either conferenceSolution
and at least one entryPoint
, or createRequest
is required.
conferenceData.entryPoints[].
accessCode
string
When creating new conference data, populate only the subset of { meetingCode
, accessCode
, passcode
, password
, pin
} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
Optional.
conferenceData.entryPoints[].
entryPointType
string
Possible values are:
-
"video"
- joining a conference over HTTP. A conference can have zero or onevideo
entry point. -
"phone"
- joining a conference by dialing a phone number. A conference can have zero or morephone
entry points. -
"sip"
- joining a conference over SIP. A conference can have zero or onesip
entry point. -
"more"
- further conference joining instructions, for example additional phone numbers. A conference can have zero or onemore
entry point. A conference with only amore
entry point is not a valid conference.
conferenceData.entryPoints[].
label
string
Examples:
- for
video
: meet.google.com/aaa-bbbb-ccc - for
phone
: +1 123 268 2601 - for
sip
: 12345678@altostrat.com - for
more
: should not be filled
Optional.
conferenceData.entryPoints[].
meetingCode
string
When creating new conference data, populate only the subset of { meetingCode
, accessCode
, passcode
, password
, pin
} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
Optional.
conferenceData.entryPoints[].
passcode
string
When creating new conference data, populate only the subset of { meetingCode
, accessCode
, passcode
, password
, pin
} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
conferenceData.entryPoints[].
password
string
When creating new conference data, populate only the subset of { meetingCode
, accessCode
, passcode
, password
, pin
} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
Optional.
conferenceData.entryPoints[].
pin
string
When creating new conference data, populate only the subset of { meetingCode
, accessCode
, passcode
, password
, pin
} fields that match the terminology that the conference provider uses. Only the populated fields should be displayed.
Optional.
conferenceData.entryPoints[].
uri
string
Format:
- for
video
,http:
orhttps:
schema is required. - for
phone
,tel:
schema is required. The URI should include the entire dial sequence (e.g., tel:+12345678900,,,123456789;1234). - for
sip
,sip:
schema is required, e.g., sip:12345678@myprovider.com. - for
more
,http:
orhttps:
schema is required.
conferenceData.
notes
string
conferenceData.
signature
string
Generated on server side.
Unset for a conference with a failed create request.
Optional for a conference with a pending create request.
creator
object
creator.
displayName
string
creator.
email
string
creator.
id
string
creator.
self
boolean
description
string
end
nested object
end.
date
date
end.
dateTime
datetime
timeZone
. end.
timeZone
string
endTimeUnspecified
boolean
etag
etag
eventType
string
- "
birthday
" - A special all-day event with an annual recurrence. - "
default
" - A regular event or not further specified. - "
focusTime
" - A focus-time event. - "
fromGmail
" - An event from Gmail. This type of event cannot be created. - "
outOfOffice
" - An out-of-office event. - "
workingLocation
" - A working location event.
extendedProperties
object
extendedProperties.
private
object
extendedProperties.private.
(key)
string
focusTimeProperties
nested object
eventType
is focusTime
. focusTimeProperties.
autoDeclineMode
string
declineNone
, meaning that no meeting invitations are declined; declineAllConflictingInvitations
, meaning that all conflicting meeting invitations that conflict with the event are declined; and declineOnlyNewConflictingInvitations
, meaning that only new conflicting meeting invitations which arrive while the Focus Time event is present are to be declined. focusTimeProperties.
chatStatus
string
available
or doNotDisturb
. focusTimeProperties.
declineMessage
string
gadget
object
gadget.
display
string
- "
icon
" - The gadget displays next to the event's title in the calendar view. - "
chip
" - The gadget displays when the event is clicked.
gadget.
height
integer
gadget.
iconLink
string
gadget.
link
string
gadget.
preferences
object
gadget.preferences.
(key)
string
gadget.
title
string
gadget.
type
string
gadget.
width
integer
guestsCanInviteOthers
boolean
guestsCanModify
boolean
guestsCanSeeOtherGuests
boolean
hangoutLink
string
htmlLink
string
iCalUID
string
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 id
s while they all share the same iCalUID
s. 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.
id
string
- 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
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 id
s while they all share the same icalUID
s.
kind
string
calendar#event
").location
string
locked
boolean
organizer
object
attendees
with the organizer
field set to True. To change the organizer, use the move
operation. Read-only, except when importing an event. organizer.
displayName
string
organizer.
email
string
organizer.
id
string
organizer.
self
boolean
originalStartTime
nested object
originalStartTime.
date
date
originalStartTime.
dateTime
datetime
timeZone
. originalStartTime.
timeZone
string
outOfOfficeProperties
nested object
eventType
is outOfOffice
. outOfOfficeProperties.
autoDeclineMode
string
declineNone
, meaning that no meeting invitations are declined; declineAllConflictingInvitations
, meaning that all conflicting meeting invitations that conflict with the event are declined; and declineOnlyNewConflictingInvitations
, meaning that only new conflicting meeting invitations which arrive while the Out of office event is present are to be declined. outOfOfficeProperties.
declineMessage
string
privateCopy
boolean
recurrence[]
list
start
and end
fields. This field is omitted for single events or instances of recurring events.recurringEventId
string
id
of the recurring event to which this instance belongs. Immutable.reminders
object
updated
property of the enclosing event. reminders.
overrides[]
list
reminders.overrides[].
method
string
- "
email
" - Reminders are sent via email. - "
popup
" - Reminders are sent via a UI popup.
Required when adding a reminder.
reminders.overrides[].
minutes
integer
Required when adding a reminder.
reminders.
useDefault
boolean
sequence
integer
source
object
source.
title
string
source.
url
string
start
nested object
start.
date
date
start.
dateTime
datetime
timeZone
. start.
timeZone
string
status
string
- "
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 (whensyncToken
orupdatedMin
are specified) or if theshowDeleted
flag is set totrue
. 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
andoriginalStartTime
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.
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. - 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.
summary
string
transparency
string
- "
opaque
" - Default value. The event does block time on the calendar. This is equivalent to setting Show me asto Busyin the Calendar UI. - "
transparent
" - The event does not block time on the calendar. This is equivalent to setting Show me asto Availablein the Calendar UI.
updated
datetime
visibility
string
- "
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.
workingLocationProperties
nested object
workingLocationProperties.
customLocation
object
workingLocationProperties.customLocation.
label
string
workingLocationProperties.
homeOffice
any value
workingLocationProperties.
officeLocation
object
workingLocationProperties.officeLocation.
buildingId
string
workingLocationProperties.officeLocation.
deskId
string
workingLocationProperties.officeLocation.
floorId
string
workingLocationProperties.officeLocation.
floorSectionId
string
workingLocationProperties.officeLocation.
label
string
workingLocationProperties.
type
string
- "
homeOffice
" - The user is working at home. - "
officeLocation
" - The user is working from an office. - "
customLocation
" - The user is working from a custom location.
Required when adding working location properties.
Methods
- delete
- Deletes an event.
- get
- Returns an event based on its Google Calendar ID. To retrieve an event using its iCalendar ID, call the events.list method using the
iCalUID
parameter . - import
- Imports an event. This operation is used to add a private copy of an existing event to a calendar. Only events with an
eventType
ofdefault
may be imported.Deprecated behavior: If a non-
default
event is imported, its type will be changed todefault
and any event-type-specific properties it may have will be dropped. - insert
- Creates an event.
- instances
- Returns instances of the specified recurring event.
- list
- Returns events on the specified calendar.
- move
- Moves an event to another calendar, i.e. changes an event's organizer. Note that only
default
events can be moved;birthday
,focusTime
,fromGmail
,outOfOffice
andworkingLocation
events cannot be moved. - patch
- Updates an event. This method supports patch semantics. Note that each patch request consumes three quota units; prefer using a
get
followed by anupdate
. The field values you specify replace the existing values. Fields that you don't specify in the request remain unchanged. Array fields, if specified, overwrite the existing arrays; this discards any previous array elements. - quickAdd
- Creates an event based on a simple text string.
- update
- Updates an event. This method does not support patch semantics and always updates the entire event resource. To do a partial update, perform a
get
followed by anupdate
using etags to ensure atomicity. - watch
- Watch for changes to Events resources.
attendees[]. comment
string