Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelistoverlay
POST/calendar/v3/calendars/{calendarId}/acl/watchWatch a calendar's ACL for changes · Watch acl#
Ask an LLM
“How do I get notified when someone's access to my calendar changes?”
“Can I watch the ACL list for changes with a sync token?”
Tell an agent
Watch ACL changes on calendar {calendarId}.
Watch ACL changes on {calendarId} with sync token {syncToken}.
PATCH/calendar/v3/calendars/{calendarId}/acl/{ruleId}Change a calendar ACL rule · Patch acl#
Ask an LLM
“Can I change just the role of an ACL rule without resending the rest?”
“How do I downgrade someone's calendar access with a partial update?”
Tell an agent
Patch ACL rule {ruleId} on {calendarId} to role {role}.
Patch ACL rule {ruleId} in {calendarId} to scope {scope}.
DELETE/calendar/v3/calendars/{calendarId}/acl/{ruleId}Remove a calendar ACL rule · Delete acl#
Ask an LLM
“How do I revoke someone's access to my calendar?”
“Can I delete an ACL rule by its ID?”
Tell an agentdestructive · confirm first
Delete ACL rule {ruleId} from {calendarId}.
Revoke access by removing ACL rule {ruleId} on {calendarId}.
GET/calendar/v3/calendars/{calendarId}/acl/{ruleId}Get one calendar ACL rule · Get acl#
Ask an LLM
“What role does a particular ACL rule give someone on my calendar?”
“Can I look up a single calendar access rule by its ID?”
Tell an agent
Get ACL rule {ruleId} on calendar {calendarId}.
Show who has access through ACL rule {ruleId} in {calendarId}.
PUT/calendar/v3/calendars/{calendarId}/acl/{ruleId}Replace a calendar ACL rule · Update acl#
Ask an LLM
“How do I change the role of an existing calendar ACL rule?”
“Can I replace an ACL rule's scope and role in one call?”
Tell an agent
Replace ACL rule {ruleId} on {calendarId} with role {role}.
Update ACL rule {ruleId} in {calendarId} to scope {scope}.
POST/calendar/v3/calendars/{calendarId}/aclAdd an ACL rule to a calendar · Insert acl#
Ask an LLM
“How do I share my calendar with a colleague by email?”
“Can I give someone read-only access to a calendar?”
Tell an agent
Add ACL rule {scope} with role {role} to calendar {calendarId}.
Share {calendarId} with {scope} as {role}.
GET/calendar/v3/calendars/{calendarId}/aclList a calendar's ACL rules · List acl#
Ask an LLM
“Who currently has access to my calendar and with what role?”
“Can I include deleted ACL rules when listing a calendar's access list?”
Tell an agent
List ACL rules for calendar {calendarId}.
Show ACL rules on {calendarId} including deleted ones.
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.1.0
info:
title: Calendar API Acl API
version: v3
description: Generated from Google's published Discovery document for Calendar API (calendar v3, revision 20261109). 7 operation(s).
contact:
name: Google
url: https://developers.google.com/
termsOfService: https://developers.google.com/terms
externalDocs:
url: https://developers.google.com/workspace/calendar/firstapp
servers:
- url: https://www.googleapis.com
paths:
/calendar/v3/calendars/{calendarId}/acl/watch:
post:
operationId: calendar.acl.watch
summary: Watch acl
description: Watch for changes to ACL resources.
parameters:
- name: calendarId
in: path
required: true
description: 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.
schema:
type: string
- name: maxResults
in: query
required: false
description: Maximum number of entries returned on one result page. By default the value is 100 entries. The page
size can never be larger than 250 entries. Optional.
schema:
format: int32
minimum: 1
type: integer
- name: pageToken
in: query
required: false
description: Token specifying which result page to return. Optional.
schema:
type: string
- name: showDeleted
in: query
required: false
description: Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to "none".
Deleted ACLs will always be included if syncToken is provided. Optional. The default is False.
schema:
type: boolean
- name: syncToken
in: query
required: false
description: 'Token obtained from the nextSyncToken field returned on the last page of results from the previous list
request. It makes the result of this list request contain only entries that have changed since then. All entries
deleted since the previous list request will always be in the result set and it is not allowed to set showDeleted
to False.
If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its
storage and perform a full synchronization without any syncToken.
Learn more about incremental synchronization.
Optional. The default is to return all entries.'
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Channel'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Channel'
4XX:
content: &id001
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id001
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/calendar
- https://www.googleapis.com/auth/calendar.acls
- https://www.googleapis.com/auth/calendar.acls.readonly
- apiKey: []
tags:
- Acl
/calendar/v3/calendars/{calendarId}/acl/{ruleId}:
patch:
operationId: calendar.acl.patch
summary: Patch acl
description: Updates an access control rule. This method supports patch semantics.
parameters:
- name: calendarId
in: path
required: true
description: 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.
schema:
type: string
- name: ruleId
in: path
required: true
description: ACL rule identifier.
schema:
type: string
- name: sendNotifications
in: query
required: false
description: Whether to send notifications about the calendar sharing change. Note that there are no notifications
on access removal. Optional. The default is True.
schema:
type: boolean
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AclRule'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/AclRule'
4XX:
content: &id002
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id002
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/calendar
- https://www.googleapis.com/auth/calendar.acls
- apiKey: []
tags:
- Acl
delete:
operationId: calendar.acl.delete
summary: Delete acl
description: Deletes an access control rule.
parameters:
- name: calendarId
in: path
required: true
description: 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.
schema:
type: string
- name: ruleId
in: path
required: true
description: ACL rule identifier.
schema:
type: string
responses:
'200':
description: Successful response
4XX:
content: &id003
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id003
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/calendar
- https://www.googleapis.com/auth/calendar.acls
- apiKey: []
tags:
- Acl
get:
operationId: calendar.acl.get
summary: Get acl
description: Returns an access control rule.
parameters:
- name: calendarId
in: path
required: true
description: 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.
schema:
type: string
- name: ruleId
in: path
required: true
description: ACL rule identifier.
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/AclRule'
4XX:
content: &id004
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id004
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/calendar
- https://www.googleapis.com/auth/calendar.acls
- https://www.googleapis.com/auth/calendar.acls.readonly
- https://www.googleapis.com/auth/calendar.readonly
- apiKey: []
tags:
- Acl
put:
operationId: calendar.acl.update
summary: Update acl
description: Updates an access control rule.
parameters:
- name: calendarId
in: path
required: true
description: 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.
schema:
type: string
- name: ruleId
in: path
required: true
description: ACL rule identifier.
schema:
type: string
- name: sendNotifications
in: query
required: false
description: Whether to send notifications about the calendar sharing change. Note that there are no notifications
on access removal. Optional. The default is True.
schema:
type: boolean
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AclRule'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/AclRule'
4XX:
content: &id005
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id005
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/calendar
- https://www.googleapis.com/auth/calendar.acls
- apiKey: []
tags:
- Acl
/calendar/v3/calendars/{calendarId}/acl:
post:
operationId: calendar.acl.insert
summary: Insert acl
description: Creates an access control rule.
parameters:
- name: calendarId
in: path
required: true
description: 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.
schema:
type: string
- name: sendNotifications
in: query
required: false
description: Whether to send notifications about the calendar sharing change. Optional. The default is True.
schema:
type: boolean
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AclRule'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/AclRule'
4XX:
content: &id006
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id006
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/calendar
- https://www.googleapis.com/auth/calendar.acls
- apiKey: []
tags:
- Acl
get:
operationId: calendar.acl.list
summary: List acl
description: Returns the rules in the access control list for the calendar.
parameters:
- name: calendarId
in: path
required: true
description: 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.
schema:
type: string
- name: maxResults
in: query
required: false
description: Maximum number of entries returned on one result page. By default the value is 100 entries. The page
size can never be larger than 250 entries. Optional.
schema:
minimum: 1
format: int32
type: integer
- name: pageToken
in: query
required: false
description: Token specifying which result page to return. Optional.
schema:
type: string
- name: showDeleted
in: query
required: false
description: Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to "none".
Deleted ACLs will always be included if syncToken is provided. Optional. The default is False.
schema:
type: boolean
- name: syncToken
in: query
required: false
description: 'Token obtained from the nextSyncToken field returned on the last page of results from the previous list
request. It makes the result of this list request contain only entries that have changed since then. All entries
deleted since the previous list request will always be in the result set and it is not allowed to set showDeleted
to False.
If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its
storage and perform a full synchronization without any syncToken.
Learn more about incremental synchronization.
Optional. The default is to return all entries.'
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Acl'
4XX:
content: &id007
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id007
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/calendar
- https://www.googleapis.com/auth/calendar.acls
- https://www.googleapis.com/auth/calendar.acls.readonly
- apiKey: []
tags:
- Acl
components:
securitySchemes:
apiKey:
type: apiKey
in: query
name: key
description: API key; accepted by methods that do not need user data.
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/calendar.acls: See and change the sharing permissions of Google calendars you
own
https://www.googleapis.com/auth/calendar: See, edit, share, and permanently delete all the calendars you can access
using Google Calendar
https://www.googleapis.com/auth/calendar.app.created: Make secondary Google calendars, and see, create, change,
and delete events on them
https://www.googleapis.com/auth/calendar.calendarlist: See, add, and remove Google calendars you’re subscribed
to
https://www.googleapis.com/auth/calendar.settings: View and edit your Calendar settings
https://www.googleapis.com/auth/calendar.freebusy: View your availability in your calendars
https://www.googleapis.com/auth/calendar.events.owned: See, create, change, and delete events on Google calendars
you own
https://www.googleapis.com/auth/calendar.events.owned.readonly: See the events on Google calendars you own
https://www.googleapis.com/auth/calendar.events: View and edit events on all your calendars
https://www.googleapis.com/auth/calendar.calendars.readonly: See the title, description, default time zone, and
other properties of Google calendars you have access to
https://www.googleapis.com/auth/calendar.calendarlist.readonly: See the list of Google calendars you’re subscribed
to
https://www.googleapis.com/auth/calendar.acls.readonly: See the sharing permissions of Google calendars you own
https://www.googleapis.com/auth/calendar.calendars: See and change the properties of Google calendars you have
access to, and create secondary calendars
https://www.googleapis.com/auth/calendar.events.public.readonly: See the events on public calendars
https://www.googleapis.com/auth/calendar.events.freebusy: See the availability on Google calendars you have access
to
https://www.googleapis.com/auth/calendar.events.readonly: View events on all your calendars
https://www.googleapis.com/auth/calendar.readonly: See and download any calendar you can access using your Google
Calendar
https://www.googleapis.com/auth/calendar.settings.readonly: View your Calendar settings
schemas:
Acl:
properties:
etag:
description: ETag of the collection.
type: string
nextSyncToken:
type: string
description: Token used at a later point in time to retrieve only the entries that have changed since this result
was returned. Omitted if further results are available, in which case nextPageToken is provided.
nextPageToken:
type: string
description: Token used to access the next page of this result. Omitted if no further results are available, in
which case nextSyncToken is provided.
items:
type: array
items:
$ref: '#/components/schemas/AclRule'
description: List of rules on the access control list.
kind:
default: calendar#acl
description: Type of the collection ("calendar#acl").
type: string
type: object
AclRule:
type: object
properties:
id:
type: string
description: Identifier of the Access Control List (ACL) rule. See Sharing calendars.
role:
type: string
description: "The role assigned to the scope. Possible values are: \n- \"none\" - Provides no access. \n- \"freeBusyReader\"\
\ - Provides read access to free/busy information. \n- \"reader\" - Provides read access to the calendar. Private\
\ events will appear to users with reader access, but event details will be hidden. \n- \"writerWithoutPrivateAccess\"\
\ - Provides read and write access to the calendar. Private events will appear to users with writerWithoutPrivateAccess\
\ access, but event details will be hidden. \n- \"writer\" - Provides read and write access to the calendar. Private\
\ events will appear to users with writer access, and event details will be visible. Provides read access to the\
\ calendar's ACLs. \n- \"owner\" - Provides manager access to the calendar. This role has all of the permissions\
\ of the writer role with the additional ability to modify access levels of other users.\nImportant: 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."
scope:
description: The extent to which calendar access is granted by this ACL rule.
properties:
value:
description: The email address of a user or group, or the name of a domain, depending on the scope type. Omitted
for type "default".
type: string
type:
type: string
description: "The type of the scope. Possible values are: \n- \"default\" - The public scope. This is the default\
\ value. \n- \"user\" - Limits the scope to a single user. \n- \"group\" - Limits the scope to a group. \n\
- \"domain\" - Limits the scope to a domain. Note: The permissions granted to the \"default\", or public,\
\ scope apply to any user, authenticated or not."
type: object
kind:
type: string
description: Type of the resource ("calendar#aclRule").
default: calendar#aclRule
etag:
type: string
description: ETag of the resource.
Channel:
properties:
resourceUri:
description: A version-specific identifier for the watched resource.
type: string
params:
description: Additional parameters controlling delivery channel behavior. Optional.
additionalProperties:
type: string
description: Declares a new parameter by name.
type: object
kind:
type: string
description: Identifies this as a notification channel used to watch for changes to a resource, which is "api#channel".
default: api#channel
type:
type: string
description: The type of delivery mechanism used for this channel. Valid values are "web_hook" (or "webhook"). Both
values refer to a channel where Http requests are used to deliver messages.
expiration:
type: string
format: int64
description: Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
token:
description: An arbitrary string delivered to the target address with each notification delivered over this channel.
Optional.
type: string
resourceId:
type: string
description: An opaque ID that identifies the resource being watched on this channel. Stable across different API
versions.
address:
description: The address where notifications are delivered for this channel.
type: string
id:
description: A UUID or similar unique string that identifies this channel.
type: string
payload:
type: boolean
description: A Boolean value to indicate whether payload is wanted. Optional.
type: object
GoogleRpcError:
type: object
description: The error envelope every Google API returns.
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
details:
type: array
items:
type: object
x-provenance:
method: harvested
publisher: Google
source: https://calendar-json.googleapis.com/$discovery/rest?version=v3
note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261109)