Calendar API
  1. acl
Calendar API
  • calendars
    • /calendars
      POST
    • /calendars/{calendarId}
      DELETE
    • /calendars/{calendarId}
      GET
    • /calendars/{calendarId}
      PATCH
    • /calendars/{calendarId}
      PUT
    • /calendars/{calendarId}/clear
      POST
  • acl
    • /calendars/{calendarId}/acl
      GET
    • /calendars/{calendarId}/acl
      POST
    • /calendars/{calendarId}/acl/watch
      POST
    • /calendars/{calendarId}/acl/{ruleId}
      DELETE
    • /calendars/{calendarId}/acl/{ruleId}
      GET
    • /calendars/{calendarId}/acl/{ruleId}
      PATCH
    • /calendars/{calendarId}/acl/{ruleId}
      PUT
  • events
    • /calendars/{calendarId}/events
      GET
    • /calendars/{calendarId}/events
      POST
    • /calendars/{calendarId}/events/import
      POST
    • /calendars/{calendarId}/events/quickAdd
      POST
    • /calendars/{calendarId}/events/watch
      POST
    • /calendars/{calendarId}/events/{eventId}
      DELETE
    • /calendars/{calendarId}/events/{eventId}
      GET
    • /calendars/{calendarId}/events/{eventId}
      PATCH
    • /calendars/{calendarId}/events/{eventId}
      PUT
    • /calendars/{calendarId}/events/{eventId}/instances
      GET
    • /calendars/{calendarId}/events/{eventId}/move
      POST
  • channels
    • /channels/stop
      POST
  • colors
    • /colors
  • freebusy
    • /freeBusy
  • calendarList
    • /users/me/calendarList
    • /users/me/calendarList
    • /users/me/calendarList/watch
    • /users/me/calendarList/{calendarId}
    • /users/me/calendarList/{calendarId}
    • /users/me/calendarList/{calendarId}
    • /users/me/calendarList/{calendarId}
  • settings
    • /users/me/settings
    • /users/me/settings/watch
    • /users/me/settings/{setting}
  1. acl

/calendars/{calendarId}/acl/{ruleId}

PATCH
/calendars/{calendarId}/acl/{ruleId}
acl
Updates an access control rule. This method supports patch semantics.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://www.googleapis.com/calendar/v3/calendars//acl/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "etag": "string",
    "id": "string",
    "kind": "calendar#aclRule",
    "role": "string",
    "scope": {
        "type": "string",
        "value": "string"
    }
}'
Response Response Example
{
  "etag": "string",
  "id": "string",
  "kind": "calendar#aclRule",
  "role": "string",
  "scope": {
    "type": "string",
    "value": "string"
  }
}

Request

Path Params
calendarId
string 
required
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.
ruleId
string 
required
ACL rule identifier.
Query Params
sendNotifications
string 
optional
Whether to send notifications about the calendar sharing change. Note that there are no notifications on access removal. Optional. The default is True.
Body Params application/json
etag
string 
optional
ETag of the resource.
id
string 
optional
Identifier of the Access Control List (ACL) rule. See Sharing calendars.
kind
string 
optional
Type of the resource ("calendar#aclRule").
Default:
calendar#aclRule
role
string 
optional
The role assigned to the scope. Possible values are:
"none" - Provides no access.
"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.
"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 ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
scope
object 
optional
The extent to which calendar access is granted by this ACL rule.
type
string 
optional
The type of the scope. Possible values are:
"default" - The public scope. This is the default value.
"user" - Limits the scope to a single user.
"group" - Limits the scope to a group.
"domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
value
string 
optional
The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
Examples

Responses

🟢200Successful response
application/json
Body
etag
string 
optional
ETag of the resource.
id
string 
optional
Identifier of the Access Control List (ACL) rule. See Sharing calendars.
kind
string 
optional
Type of the resource ("calendar#aclRule").
Default:
calendar#aclRule
role
string 
optional
The role assigned to the scope. Possible values are:
"none" - Provides no access.
"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.
"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 ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
scope
object 
optional
The extent to which calendar access is granted by this ACL rule.
type
string 
optional
The type of the scope. Possible values are:
"default" - The public scope. This is the default value.
"user" - Limits the scope to a single user.
"group" - Limits the scope to a group.
"domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
value
string 
optional
The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
Previous
/calendars/{calendarId}/acl/{ruleId}
Next
/calendars/{calendarId}/acl/{ruleId}
Built with