Skip to content
gist.link ↗

markAllNotificationsRead

Mutation Dashboard API — POST https://dashboard.api.gist.link/graphql

Mark all of the current user’s notifications as read; returns the count affected. Any authenticated user.

dashboard:mutation:markAllNotificationsRead

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

type Mutation {
markAllNotificationsRead: Int!
}

This mutation takes no arguments.

Int!.

Terminal window
curl https://dashboard.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation MarkAllNotificationsRead { markAllNotificationsRead }",
"variables": {}
}
JSON