Skip to content
gist.link ↗

createCalendar

Mutation Calendar API — POST https://calendar.api.gist.link/graphql

The createCalendar mutation on the Calendar API.

calendar:mutation:createCalendar

The calling IAM key must hold this permission (or a wildcard that covers it: calendar:mutation:* or calendar:*) and the access token must have been minted with audience=calendar. See Permissions.

type Mutation {
createCalendar(input: CalendarInput!): Calendar!
}
Argument Type Required Description
input CalendarInput! Yes —

Calendar! — see the Calendar types reference.

Terminal window
curl https://calendar.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation CreateCalendar($input: CalendarInput!) { createCalendar(input: $input) { id name color timezone isDefault conflictCheck myRole ownerId } }",
"variables": {
"input": {
"name": "Example"
}
}
}
JSON