AlmondTill/G3N API

On this page

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).

What happens

Requires a reason; answers how many sessions died.

Who may call it

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

Arguments

NameTypeRequiredNotes
inputRevokeAllDeviceSessionsInput RevokeAllDeviceSessionsInput!yesNo further notes.

Returns

RevokeAllDeviceSessionsResult RevokeAllDeviceSessionsResult! — The revokeAllDeviceSessions result.

Example request

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

Variables:

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

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

Example response

{
  "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