Skip to content
gist.link ↗

snoozeThread

Mutation Mail API — POST https://mail.api.gist.link/graphql

Hide a thread until the given time (new replies un-snooze it early).

mail:mutation:snoozeThread

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

type Mutation {
snoozeThread(uuid: String!, until: String!): Thread!
}
Argument Type Required Description
uuid String! Yes —
until String! Yes —

Thread! — see the Mail types reference.

Terminal window
curl https://mail.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation SnoozeThread($uuid: String!, $until: String!) { snoozeThread(uuid: $uuid, until: $until) { uuid subject created_at } }",
"variables": {
"uuid": "example",
"until": "example"
}
}
JSON