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

**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
}
```
