---
search:
  tags:
    - Compliance
    - POST
seo:
  description: >-
    Admin only. Clears the revocation on one device and… Reference for the POST
    /api/v1/compliance/devices/{deviceId}/restore endpoint in the PharmaFlow
    API.
sidebar:
  label: Restore a revoked device
  badge: POST
title: Restore a revoked device
type: openapi-operation
---
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`

**Responses**

- `200` — The device and its new revocation state
- `400` — A device id is required
- `401` — Not authenticated
- `403` — Caller is not an admin
- `404` — Unknown device

Response example, 200:

```json
{
  "device_id": "string",
  "revoked": true
}
```
