- calendars
- acl
- events
- /calendars/{calendarId}/eventsGET
- /calendars/{calendarId}/eventsPOST
- /calendars/{calendarId}/events/importPOST
- /calendars/{calendarId}/events/quickAddPOST
- /calendars/{calendarId}/events/watchPOST
- /calendars/{calendarId}/events/{eventId}DELETE
- /calendars/{calendarId}/events/{eventId}GET
- /calendars/{calendarId}/events/{eventId}PATCH
- /calendars/{calendarId}/events/{eventId}PUT
- /calendars/{calendarId}/events/{eventId}/instancesGET
- /calendars/{calendarId}/events/{eventId}/movePOST
- channels
- colors
- freebusy
- calendarList
- settings
/calendars/{calendarId}/events/{eventId}
PATCH
/calendars/{calendarId}/events/{eventId}
events
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://www.googleapis.com/calendar/v3/calendars//events/' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
{
"anyoneCanAddSelf": false,
"attachments": [
{
"fileId": "string",
"fileUrl": "string",
"iconLink": "string",
"mimeType": "string",
"title": "string"
}
],
"attendees": [
{
"additionalGuests": 0,
"comment": "string",
"displayName": "string",
"email": "string",
"id": "string",
"optional": false,
"organizer": true,
"resource": false,
"responseStatus": "string",
"self": false
}
],
"attendeesOmitted": false,
"colorId": "string",
"conferenceData": {
"conferenceId": "string",
"conferenceSolution": {
"iconUri": "string",
"key": {
"type": "string"
},
"name": "string"
},
"createRequest": {
"conferenceSolutionKey": {
"type": "string"
},
"requestId": "string",
"status": {
"statusCode": "string"
}
},
"entryPoints": [
{
"accessCode": "string",
"entryPointFeatures": [
"string"
],
"entryPointType": "string",
"label": "string",
"meetingCode": "string",
"passcode": "string",
"password": "string",
"pin": "string",
"regionCode": "string",
"uri": "string"
}
],
"notes": "string",
"parameters": {
"addOnParameters": {
"parameters": {
"property1": "string",
"property2": "string"
}
}
},
"signature": "string"
},
"created": "2019-08-24T14:15:22Z",
"creator": {
"displayName": "string",
"email": "string",
"id": "string",
"self": false
},
"description": "string",
"end": {
"date": "2019-08-24",
"dateTime": "2019-08-24T14:15:22Z",
"timeZone": "string"
},
"endTimeUnspecified": false,
"etag": "string",
"eventType": "default",
"extendedProperties": {
"private": {
"property1": "string",
"property2": "string"
},
"shared": {
"property1": "string",
"property2": "string"
}
},
"gadget": {
"display": "string",
"height": 0,
"iconLink": "string",
"link": "string",
"preferences": {
"property1": "string",
"property2": "string"
},
"title": "string",
"type": "string",
"width": 0
},
"guestsCanInviteOthers": true,
"guestsCanModify": false,
"guestsCanSeeOtherGuests": true,
"hangoutLink": "string",
"htmlLink": "string",
"iCalUID": "string",
"id": "string",
"kind": "calendar#event",
"location": "string",
"locked": false,
"organizer": {
"displayName": "string",
"email": "string",
"id": "string",
"self": false
},
"originalStartTime": {
"date": "2019-08-24",
"dateTime": "2019-08-24T14:15:22Z",
"timeZone": "string"
},
"privateCopy": false,
"recurrence": [
"string"
],
"recurringEventId": "string",
"reminders": {
"overrides": [
{
"method": "string",
"minutes": 0
}
],
"useDefault": true
},
"sequence": 0,
"source": {
"title": "string",
"url": "string"
},
"start": {
"date": "2019-08-24",
"dateTime": "2019-08-24T14:15:22Z",
"timeZone": "string"
},
"status": "string",
"summary": "string",
"transparency": "opaque",
"updated": "2019-08-24T14:15:22Z",
"visibility": "default",
"workingLocationProperties": {
"customLocation": {
"label": "string"
},
"homeOffice": null,
"officeLocation": {
"buildingId": "string",
"deskId": "string",
"floorId": "string",
"floorSectionId": "string",
"label": "string"
}
}
}
Request
Path Params
calendarId
stringÂ
required
eventId
stringÂ
required
Query Params
alwaysIncludeEmail
stringÂ
optional
conferenceDataVersion
integerÂ
optional
maxAttendees
integerÂ
optional
sendNotifications
stringÂ
optional
sendUpdates
stringÂ
optional
supportsAttachments
stringÂ
optional
Body Params application/json
anyoneCanAddSelf
booleanÂ
optional
Default:
false
attachments
array[object (EventAttachment) {5}]Â
optional
In order to modify attachments the supportsAttachments request parameter should be set to true.
There can be at most 25 attachments per event,
fileId
stringÂ
optional
For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
fileUrl
stringÂ
optional
For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
Required when adding an attachment.
iconLink
stringÂ
optional
mimeType
stringÂ
optional
title
stringÂ
optional
attendees
array[object (EventAttendee) {10}]Â
optional
additionalGuests
integer <int32>
optional
Default:
0
comment
stringÂ
optional
displayName
stringÂ
optional
email
stringÂ
optional
Required when adding an attendee.
id
stringÂ
optional
optional
booleanÂ
optional
Default:
false
organizer
booleanÂ
optional
resource
booleanÂ
optional
Default:
false
responseStatus
stringÂ
optional
self
booleanÂ
optional
Default:
false
attendeesOmitted
booleanÂ
optional
Default:
false
colorId
stringÂ
optional
conferenceData
object (ConferenceData)Â
optional
conferenceId
stringÂ
optional
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:
conferenceSolution
object (ConferenceSolution)Â
optional
Unset for a conference with a failed create request.
Either conferenceSolution and at least one entryPoint, or createRequest is required.
createRequest
object (CreateConferenceRequest)Â
optional
Either conferenceSolution and at least one entryPoint, or createRequest is required.
entryPoints
array[object (EntryPoint) {10}]Â
optional
All of them must belong to the same conference.
Either conferenceSolution and at least one entryPoint, or createRequest is required.
notes
stringÂ
optional
parameters
object (ConferenceParameters)Â
optional
signature
stringÂ
optional
Generated on server side.
Unset for a conference with a failed create request.
Optional for a conference with a pending create request.
created
string <date-time>
optional
creator
objectÂ
optional
displayName
stringÂ
optional
email
stringÂ
optional
id
stringÂ
optional
self
booleanÂ
optional
Default:
false
description
stringÂ
optional
end
object (EventDateTime)Â
optional
date
string <date>
optional
dateTime
string <date-time>
optional
timeZone
stringÂ
optional
endTimeUnspecified
booleanÂ
optional
Default:
false
etag
stringÂ
optional
eventType
stringÂ
optional
Default:
default
extendedProperties
objectÂ
optional
private
objectÂ
optional
shared
objectÂ
optional
gadget
objectÂ
optional
display
stringÂ
optional
height
integer <int32>
optional
iconLink
stringÂ
optional
link
stringÂ
optional
preferences
objectÂ
optional
title
stringÂ
optional
type
stringÂ
optional
width
integer <int32>
optional
guestsCanInviteOthers
booleanÂ
optional
Default:
true
guestsCanModify
booleanÂ
optional
Default:
false
guestsCanSeeOtherGuests
booleanÂ
optional
Default:
true
hangoutLink
stringÂ
optional
htmlLink
stringÂ
optional
iCalUID
stringÂ
optional
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.
id
stringÂ
optional
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.
kind
stringÂ
optional
Default:
calendar#event
location
stringÂ
optional
locked
booleanÂ
optional
Default:
false
organizer
objectÂ
optional
displayName
stringÂ
optional
email
stringÂ
optional
id
stringÂ
optional
self
booleanÂ
optional
Default:
false
originalStartTime
object (EventDateTime)Â
optional
privateCopy
booleanÂ
optional
Default:
false
recurrence
array[string]
optional
recurringEventId
stringÂ
optional
reminders
objectÂ
optional
overrides
array[object (EventReminder) {2}]Â
optional
useDefault
booleanÂ
optional
sequence
integer <int32>
optional
source
objectÂ
optional
title
stringÂ
optional
url
stringÂ
optional
start
object (EventDateTime)Â
optional
status
stringÂ
optional
A cancelled status represents two different states depending on the event type:
Cancelled exceptions are only guaranteed to have values for the id, recurringEventId and originalStartTime fields populated. The other fields might be empty.
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.
summary
stringÂ
optional
transparency
stringÂ
optional
Default:
opaque
updated
string <date-time>
optional
visibility
stringÂ
optional
Default:
default
workingLocationProperties
object (EventWorkingLocationProperties)Â
optional
customLocation
objectÂ
optional
homeOffice
optional
officeLocation
objectÂ
optional
Examples
Responses
🟢200Successful response
application/json
Body
anyoneCanAddSelf
booleanÂ
optional
Default:
false
attachments
array[object (EventAttachment) {5}]Â
optional
In order to modify attachments the supportsAttachments request parameter should be set to true.
There can be at most 25 attachments per event,
fileId
stringÂ
optional
For Google Drive files, this is the ID of the corresponding Files resource entry in the Drive API.
fileUrl
stringÂ
optional
For adding Google Drive file attachments use the same format as in alternateLink property of the Files resource in the Drive API.
Required when adding an attachment.
iconLink
stringÂ
optional
mimeType
stringÂ
optional
title
stringÂ
optional
attendees
array[object (EventAttendee) {10}]Â
optional
additionalGuests
integer <int32>
optional
Default:
0
comment
stringÂ
optional
displayName
stringÂ
optional
email
stringÂ
optional
Required when adding an attendee.
id
stringÂ
optional
optional
booleanÂ
optional
Default:
false
organizer
booleanÂ
optional
resource
booleanÂ
optional
Default:
false
responseStatus
stringÂ
optional
self
booleanÂ
optional
Default:
false
attendeesOmitted
booleanÂ
optional
Default:
false
colorId
stringÂ
optional
conferenceData
object (ConferenceData)Â
optional
conferenceId
stringÂ
optional
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:
conferenceSolution
object (ConferenceSolution)Â
optional
Unset for a conference with a failed create request.
Either conferenceSolution and at least one entryPoint, or createRequest is required.
createRequest
object (CreateConferenceRequest)Â
optional
Either conferenceSolution and at least one entryPoint, or createRequest is required.
entryPoints
array[object (EntryPoint) {10}]Â
optional
All of them must belong to the same conference.
Either conferenceSolution and at least one entryPoint, or createRequest is required.
notes
stringÂ
optional
parameters
object (ConferenceParameters)Â
optional
signature
stringÂ
optional
Generated on server side.
Unset for a conference with a failed create request.
Optional for a conference with a pending create request.
created
string <date-time>
optional
creator
objectÂ
optional
displayName
stringÂ
optional
email
stringÂ
optional
id
stringÂ
optional
self
booleanÂ
optional
Default:
false
description
stringÂ
optional
end
object (EventDateTime)Â
optional
date
string <date>
optional
dateTime
string <date-time>
optional
timeZone
stringÂ
optional
endTimeUnspecified
booleanÂ
optional
Default:
false
etag
stringÂ
optional
eventType
stringÂ
optional
Default:
default
extendedProperties
objectÂ
optional
private
objectÂ
optional
shared
objectÂ
optional
gadget
objectÂ
optional
display
stringÂ
optional
height
integer <int32>
optional
iconLink
stringÂ
optional
link
stringÂ
optional
preferences
objectÂ
optional
title
stringÂ
optional
type
stringÂ
optional
width
integer <int32>
optional
guestsCanInviteOthers
booleanÂ
optional
Default:
true
guestsCanModify
booleanÂ
optional
Default:
false
guestsCanSeeOtherGuests
booleanÂ
optional
Default:
true
hangoutLink
stringÂ
optional
htmlLink
stringÂ
optional
iCalUID
stringÂ
optional
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.
id
stringÂ
optional
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.
kind
stringÂ
optional
Default:
calendar#event
location
stringÂ
optional
locked
booleanÂ
optional
Default:
false
organizer
objectÂ
optional
displayName
stringÂ
optional
email
stringÂ
optional
id
stringÂ
optional
self
booleanÂ
optional
Default:
false
originalStartTime
object (EventDateTime)Â
optional
privateCopy
booleanÂ
optional
Default:
false
recurrence
array[string]
optional
recurringEventId
stringÂ
optional
reminders
objectÂ
optional
overrides
array[object (EventReminder) {2}]Â
optional
useDefault
booleanÂ
optional
sequence
integer <int32>
optional
source
objectÂ
optional
title
stringÂ
optional
url
stringÂ
optional
start
object (EventDateTime)Â
optional
status
stringÂ
optional
A cancelled status represents two different states depending on the event type:
Cancelled exceptions are only guaranteed to have values for the id, recurringEventId and originalStartTime fields populated. The other fields might be empty.
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.
summary
stringÂ
optional
transparency
stringÂ
optional
Default:
opaque
updated
string <date-time>
optional
visibility
stringÂ
optional
Default:
default
workingLocationProperties
object (EventWorkingLocationProperties)Â
optional
customLocation
objectÂ
optional
homeOffice
optional
officeLocation
objectÂ
optional
Modified at 2023-08-15 05:59:47