On this page
reissueDevicePairingCode
mutation · in the family Device fleet
What it does
Issue a fresh pairing code — for a lost code or a scheduled credential rotation.
Mint a FRESH single-use pairing code for an existing Device: pending_pairing (the lost/expired first code) or active (pre-expiry rotation — the fresh exchange REPLACES the credential, the state never regresses); a suspended device refuses (the kill switch stays killed); the prior un-exchanged code invalidates. Template class A3_DEVICE (hand-derived v30).
What happens
The old un-exchanged code dies; rotation replaces the device’s credential.
Who may call it
Capability area: Device fleet — Enrolling, pairing, suspending and retiring the devices at your registers.
- Owner
- Manager
- An API key whose scope allows
api:reissueDevicePairingCode
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
input | ReissueDevicePairingCodeInput ReissueDevicePairingCodeInput! | yes | No further notes. |
Returns
DeviceEnrollment DeviceEnrollment! — The enrollDevice / reissueDevicePairingCode result — the device + its single-use pairing code, returned ONCE (hash-only at rest; the damm32 check symbol screens typos at entry).
Example request
mutation ExampleReissueDevicePairingCode($input: ReissueDevicePairingCodeInput!) {
reissueDevicePairingCode(input: $input) {
pairingCode
pairingCodeExpiresAt
}
}
Variables:
{
"input": {
"deviceId": "01900000-0000-7000-8000-7c291d9e0000",
"expectedRevision": "01900000-0000-7000-8000-e02b2e6c0000"
}
}
Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.
Example response
{
"data": {
"reissueDevicePairingCode": {
"pairingCode": "BJ-001",
"pairingCodeExpiresAt": "2027-01-31T00:00:00.000Z"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": {
"name": "genesis",
"number": 0
},
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}
Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. (RATE_LIMIT)NOT_FOUND/*— That record could not be found. (NOT_FOUND)CONFLICT/*— The record’s state, or a change made in the meantime, does not allow this; the codes are on the CONFLICT page. (CONFLICT)VALIDATION/VERSION_REQUIRED— The request did not say which app version it came from. (VALIDATION)