Update an existing calendar in the user's own calendarList
PATCH {{baseUrl}}/calendars/users/:userIdentifier/calendarList/:calendarId?colorRgbFormat=<boolean>
Updates an existing calendar on the user's calendar list.
Scopes:
calendar:write
,
calendar:write:admin
Rate Limit Label
:
LIGHT
Request Params
| Key | Datatype | Required | Description |
| colorRgbFormat
| string | | This parameter must be set to true when user wants to change the foreground or background color. |
Request Body
{"id"=>"<email>", "summary"=>"<string>", "description"=>"<string>", "location"=>"<string>", "timeZone"=>"<string>", "colorId"=>"<string>", "backgroundColor"=>"<string>", "foregroundColor"=>"<string>", "hidden"=>"<boolean>", "selected"=>"<boolean>", "accessRole"=>"freeBusyReader", "defaultReminders"=>[{"method"=>"email", "minutes"=>"<integer>"}, {"method"=>"email", "minutes"=>"<integer>"}], "defaultAllDayReminders"=>[{"method"=>"popup", "minutes"=>"<integer>"}, {"method"=>"popup", "minutes"=>"<integer>"}], "notificationSettings"=>{"notifications"=>[{"type"=>"agenda", "method"=>"email"}, {"type"=>"eventCancellation", "method"=>"email"}]}, "primary"=>"<boolean>", "deleted"=>"<boolean>", "summaryOverride"=>"<string>"}
HEADERS
| Key | Datatype | Required | Description |
| Content-Type
| string | | |
| Accept
| string | | |
RESPONSES
status: OK
{"id":"\u003cemail\u003e","kind":"\u003cstring\u003e","etag":"\u003cstring\u003e","summary":"\u003cstring\u003e","description":"\u003cstring\u003e","location":"\u003cstring\u003e","timeZone":"\u003cstring\u003e","colorId":"\u003cstring\u003e","backgroundColor":"\u003cstring\u003e","foregroundColor":"\u003cstring\u003e","hidden":"\u003cboolean\u003e","selected":"\u003cboolean\u003e","accessRole":"reader","defaultReminders":[{"method":"popup","minutes":"\u003cinteger\u003e"},{"method":"popup","minutes":"\u003cinteger\u003e"}],"defaultAllDayReminders":[{"method":"email","minutes":"\u003cinteger\u003e"},{"method":"popup","minutes":"\u003cinteger\u003e"}],"notificationSettings":{"notifications":[{"type":"eventChange","method":"email"},{"type":"agenda","method":"email"}]},"primary":"\u003cboolean\u003e","deleted":"\u003cboolean\u003e","summaryOverride":"\u003cstring\u003e"}