Skip to content
PharmaFlow Knowledgebase
Esc
↑↓navigate↵open⌘Jpreview

Revoke a device

Admin only. Marks one device revoked and announces the change to the tills. An id no device carries is refused, so a revocation cannot look like it landed.

POST/api/v1/compliance/devices/{deviceId}/revoke
Authorization
AuthorizationBearer token (JWT) · headerrequired

JWT from POST /api/v1/auth/login sent as Authorization Bearer.

Path parameters
deviceIdstringrequired

The device to revoke.

Responses
200

The device and its new revocation state

device_idstringrequired
revokedbooleanrequired
400

A device id is required

detailstringrequired
401

Not authenticated

detailstringrequired
403

Caller is not an admin

detailstringrequired
404

Unknown device

detailstringrequired
Try it
Server
Authorization
Parameters
Request
curl -X POST 'http://localhost:8000/api/v1/compliance/devices/string/revoke' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "device_id": "string",
  "revoked": true
}