Skip to content
gist.link ↗

bookSlot

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

The bookSlot mutation on the Calendar API.

calendar:mutation:bookSlot

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 {
bookSlot(slug: String!, start: DateTime!, input: BookSlotInput!): BookResult!
}
Argument Type Required Description
slug String! Yes —
start DateTime! Yes —
input BookSlotInput! Yes —

BookResult! — 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 BookSlot($slug: String!, $start: DateTime!, $input: BookSlotInput!) { bookSlot(slug: $slug, start: $start, input: $input) { manageToken start end title } }",
"variables": {
"slug": "example",
"start": {},
"input": {
"name": "Example",
"email": "ada@example.com"
}
}
}
JSON