AlmondTill/G3N API

revokeAllDeviceSessions

mutation · in the family Device fleet

What it does

Kill every live session of one device — the lost-device sweep (usually with suspend).

The lost-device kill switch: revoke every live device session of one Device in one privileged act (compose with suspendDevice to also block re-exchange); reason required — a kill switch never fires silently. Template class A3_DEVICE (hand-derived v30).

Before you call

A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.

Capability area: Device fleet — Enrolling, pairing, suspending and retiring the devices at your registers.

Roles that may call it:

What happens

Requires a reason; answers how many sessions died.

Arguments

NameTypeRequiredNotes
inputRevokeAllDeviceSessionsInput RevokeAllDeviceSessionsInput!yesInput for revokeAllDeviceSessions.

Returns

RevokeAllDeviceSessionsResult RevokeAllDeviceSessionsResult! — The revokeAllDeviceSessions result.

Example request

graphql
mutation ExampleRevokeAllDeviceSessions($input: RevokeAllDeviceSessionsInput!) {
  revokeAllDeviceSessions(input: $input) {
    revokedSessions
  }
}

Variables:

json
{
  "input": {
    "deviceId": "01900000-0000-7000-8000-bdcbb4130000",
    "reason": "Correcting a miscount."
  }
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

json
{
  "data": {
    "revokeAllDeviceSessions": {
      "revokedSessions": 1
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer