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

Restore a revoked device

Admin only. Clears the revocation on one device and announces the change to the tills. It is the same write as revoke with the flag off, so a missing id is refused the same way.

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

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

Path parameters
deviceIdstringrequired

The device to restore.

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/restore' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "device_id": "string",
  "revoked": true
}