Skip to content
gist.link ↗

manageBooking

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

The manageBooking mutation on the Calendar API.

calendar:mutation:manageBooking

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 {
manageBooking(token: String!, action: BookingAction!): ManageBookingResult!
}
Argument Type Required Description
token String! Yes —
action BookingAction! Yes —

ManageBookingResult! — 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 ManageBooking($token: String!, $action: BookingAction!) { manageBooking(token: $token, action: $action) { ok status } }",
"variables": {
"token": "example",
"action": "CANCEL"
}
}
JSON