calendarList

POST /users/me/calendarList

Changed on

Inserts an existing calendar into the user's calendar list.

Request

  • Base URL
    https://www.googleapis.com/calendar/v3
  • URL
    https://www.googleapis.com/calendar/v3/users/me/calendarList
  • Auth
    • OAuth 2 and OAuth 2
      Implicit: https://accounts.google.com/o/oauth2/auth
      Scopes: https://www.googleapis.com/auth/calendar
      Authorization code: https://accounts.google.com/o/oauth2/auth
      Token URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/calendar
    • or OAuth 2 and OAuth 2
      Implicit: https://accounts.google.com/o/oauth2/auth
      Scopes: https://www.googleapis.com/auth/calendar.calendarlist
      Authorization code: https://accounts.google.com/o/oauth2/auth
      Token URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/calendar.calendarlist

Query parameters

colorRgbFormatboolean

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.

Request body

accessRolestring

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.
autoAcceptInvitationsboolean

Whether this calendar automatically accepts invitations. Only valid for resource calendars. Read-only.

backgroundColorstring

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.

colorIdstring

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.

dataOwnerstring

The email of the owner of the calendar. Set only for secondary calendars. Read-only.

deletedboolean

Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False.

descriptionstring

Description of the calendar. Optional. Read-only.

etagstring

ETag of the resource.

foregroundColorstring

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.

hiddenboolean

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.

idstring

Identifier of the calendar.

kindstring

Type of the resource ("calendar#calendarListEntry").

locationstring

Geographic location of the calendar as free-form text. Optional. Read-only.

primaryboolean

Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.

selectedboolean

Whether the calendar content shows up in the calendar UI. Optional. The default is False.

summarystring

Title of the calendar. Read-only.

summaryOverridestring

The summary that the authenticated user has set for this calendar. Optional.

timeZonestring

The time zone of the calendar. Optional. Read-only.

Response

Successful response

accessRolestring

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.
autoAcceptInvitationsboolean

Whether this calendar automatically accepts invitations. Only valid for resource calendars. Read-only.

backgroundColorstring

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.

colorIdstring

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.

dataOwnerstring

The email of the owner of the calendar. Set only for secondary calendars. Read-only.

deletedboolean

Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False.

descriptionstring

Description of the calendar. Optional. Read-only.

etagstring

ETag of the resource.

foregroundColorstring

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.

hiddenboolean

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.

idstring

Identifier of the calendar.

kindstring

Type of the resource ("calendar#calendarListEntry").

locationstring

Geographic location of the calendar as free-form text. Optional. Read-only.

primaryboolean

Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.

selectedboolean

Whether the calendar content shows up in the calendar UI. Optional. The default is False.

summarystring

Title of the calendar. Read-only.

summaryOverridestring

The summary that the authenticated user has set for this calendar. Optional.

timeZonestring

The time zone of the calendar. Optional. Read-only.

Changes

    • info

      the security scope https://www.googleapis.com/auth/calendar was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/calendar was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/calendar.calendarlist was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/calendar.calendarlist was removed from the endpoint's security scheme Oauth2c

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status

    • info

      the security scope https://www.googleapis.com/auth/calendar was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/calendar was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/calendar.calendarlist was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/calendar.calendarlist was removed from the endpoint's security scheme Oauth2c