Google: Updates an existing calendar on the user's calendar list This method supports patch semantics
Google calendarCalendarList.calendarCalendarListPatch: arguments, response, policy and SDK examples.
← Calendar calendar list operations · Get started
Operation google.calendar_calendarlist_patch
Provider route: PATCH /calendar/v3/users/me/calendarList/{calendarId}. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/google with npm, or alter-sdk-google with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { GoogleIntegration } from "@alter-ai/google";
async function execute(input: Parameters<GoogleIntegration["calendarCalendarList"]["calendarCalendarListPatch"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new GoogleIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.calendarCalendarList.calendarCalendarListPatch(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_google import GoogleIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = GoogleIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.calendar_calendar_list.calendar_calendar_list_patch(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.calendarId | string | Required within parent | 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. |
query | Model | Optional | Expand Updates an existing calendar on the user’s calendar list — request body — query |
body | Model | Required within parent | Expand Updates an existing calendar on the user’s calendar list — request body — body |
Referenced models: Updates an existing calendar on the user’s calendar list — request body — body, Updates an existing calendar on the user’s calendar list — request body — query
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand Returns a calendar from the user’s calendar list — response body |
Referenced models: Returns a calendar from the user’s calendar list — response body
Schemas
Section titled “Schemas”4 more schemas are linked from the tables above, on the schema pages.
Returns a calendar from the user's calendar list — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
accessRole | string | Optional | The effective access role that the authenticated user has on the calendar. Read-only. Possible values are: - "freeBusyReader" - Provides read access to free/busy information. - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden. - "writerWithoutPrivateAccess" - Provides read and write access to the calendar. Private events will appear to users with writerWithoutPrivateAccess access, but event details will be hidden. - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible. - "owner" - Provides manager access to the calendar. This role has all of the permissions of the writer role with the additional ability to see and modify access levels of other users. Important: the owner role is different from the calendar's data owner. A calendar has a single data owner, but can have multiple users with owner role. |
autoAcceptInvitations | boolean | Optional | Whether this calendar automatically accepts invitations. Only valid for resource calendars. Read-only. |
backgroundColor | string | Optional | The main color of the calendar in the hexadecimal format "#0088aa". This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional. |
colorId | string | Optional | The color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). This property is superseded by the backgroundColor and foregroundColor properties and can be ignored when using these properties. Optional. |
conferenceProperties | Model | Optional | Expand Returns metadata for a calendar — response body — conference Properties Conferencing properties for this calendar, for example what types of conferences are allowed. |
dataOwner | string | Optional | The email of the owner of the calendar. Set only for secondary calendars. Read-only. |
defaultReminders | array | Optional | The default reminders that the authenticated user has for this calendar. |
defaultReminders[] | Model | Each item | Expand Returns events on the specified calendar — response body — default Reminders item |
deleted | boolean | Optional | Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False. Default: false |
description | string | Optional | Description of the calendar. Optional. Read-only. |
etag | string | Optional | ETag of the resource. |
foregroundColor | string | Optional | The foreground color of the calendar in the hexadecimal format "#ffffff". This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional. |
hidden | boolean | Optional | Whether the calendar has been hidden from the list. Optional. The attribute is only returned when the calendar is hidden, in which case the value is true. Default: false |
id | string | Optional | Identifier of the calendar. |
kind | string | Optional | Type of the resource ("calendar#calendarListEntry"). Default: calendar#calendarListEntry |
location | string | Optional | Geographic location of the calendar as free-form text. Optional. Read-only. |
notificationSettings | object | Optional | The notifications that the authenticated user is receiving for this calendar. |
notificationSettings.notifications | array | Optional | The list of notifications set for this calendar. |
notificationSettings.notifications[] | Model | Each item | Expand Returns a calendar from the user's calendar list — response body — notification Settings notifications item |
primary | boolean | Optional | Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False. Default: false |
selected | boolean | Optional | Whether the calendar content shows up in the calendar UI. Optional. The default is False. Default: false |
summary | string | Optional | Title of the calendar. Read-only. |
summaryOverride | string | Optional | The summary that the authenticated user has set for this calendar. Optional. |
timeZone | string | Optional | The time zone of the calendar. Optional. Read-only. |
Referenced models: Returns a calendar from the user's calendar list — response body — notification Settings notifications item, Returns metadata for a calendar — response body — conference Properties, Returns events on the specified calendar — response body — default Reminders item
Updates an existing calendar on the user's calendar list — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
accessRole | string | Optional | The effective access role that the authenticated user has on the calendar. Read-only. Possible values are: - "freeBusyReader" - Provides read access to free/busy information. - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden. - "writerWithoutPrivateAccess" - Provides read and write access to the calendar. Private events will appear to users with writerWithoutPrivateAccess access, but event details will be hidden. - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible. - "owner" - Provides manager access to the calendar. This role has all of the permissions of the writer role with the additional ability to see and modify access levels of other users. Important: the owner role is different from the calendar's data owner. A calendar has a single data owner, but can have multiple users with owner role. |
autoAcceptInvitations | boolean | Optional | Whether this calendar automatically accepts invitations. Only valid for resource calendars. Read-only. |
backgroundColor | string | Optional | The main color of the calendar in the hexadecimal format "#0088aa". This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional. |
colorId | string | Optional | The color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). This property is superseded by the backgroundColor and foregroundColor properties and can be ignored when using these properties. Optional. |
conferenceProperties | Model | Optional | Expand Returns metadata for a calendar — response body — conference Properties Conferencing properties for this calendar, for example what types of conferences are allowed. |
dataOwner | string | Optional | The email of the owner of the calendar. Set only for secondary calendars. Read-only. |
defaultReminders | array | Optional | The default reminders that the authenticated user has for this calendar. |
defaultReminders[] | Model | Each item | Expand Updates an existing calendar on the user's calendar list — request body — body default Reminders item |
deleted | boolean | Optional | Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False. Default: false |
description | string | Optional | Description of the calendar. Optional. Read-only. |
etag | string | Optional | ETag of the resource. |
foregroundColor | string | Optional | The foreground color of the calendar in the hexadecimal format "#ffffff". This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional. |
hidden | boolean | Optional | Whether the calendar has been hidden from the list. Optional. The attribute is only returned when the calendar is hidden, in which case the value is true. Default: false |
id | string | Optional | Identifier of the calendar. |
kind | string | Optional | Type of the resource ("calendar#calendarListEntry"). Default: calendar#calendarListEntry |
location | string | Optional | Geographic location of the calendar as free-form text. Optional. Read-only. |
notificationSettings | object | Optional | The notifications that the authenticated user is receiving for this calendar. |
notificationSettings.notifications | array | Optional | The list of notifications set for this calendar. |
notificationSettings.notifications[] | Model | Each item | Expand Returns a calendar from the user's calendar list — response body — notification Settings notifications item |
primary | boolean | Optional | Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False. Default: false |
selected | boolean | Optional | Whether the calendar content shows up in the calendar UI. Optional. The default is False. Default: false |
summary | string | Optional | Title of the calendar. Read-only. |
summaryOverride | string | Optional | The summary that the authenticated user has set for this calendar. Optional. |
timeZone | string | Optional | The time zone of the calendar. Optional. Read-only. |
Referenced models: Returns a calendar from the user's calendar list — response body — notification Settings notifications item, Returns metadata for a calendar — response body — conference Properties, Updates an existing calendar on the user's calendar list — request body — body default Reminders item
Updates an existing calendar on the user's calendar list — request body — query
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
fields | string | Optional | Selector specifying which fields to include in a partial response. |
prettyPrint | boolean | Optional | Returns response with indentations and line breaks. Default: true |
quotaUser | string | Optional | An opaque string that represents a user for quota purposes. Must not exceed 40 characters. |
userIp | string | Optional | Deprecated. Please use quotaUser instead. |
colorRgbFormat | boolean | Optional | Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional. The default is False. |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: google.calendar_calendarlist_patch. Catalog operation: calendar.calendarList.patch. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
Required provider scopes: ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.app.created", "https://www.googleapis.com/auth/calendar.calendarlist"]