Remove a device activation to free its slot. Requires a `client` or `admin` key, or the `license:activate` grant; a product-bound key works only for its products. `client` keys must send `hostId` and can only remove that device; an admin key may omit it to remove every device.
client API keys must include hostId when deactivating a license. This limits client-side credentials to removing the current device only. admin keys may omit hostId to remove all activations for the license. A client key without hostId gets 400 (hostId is required for client-scoped deactivation).
A successful call returns { "message": "Key deactivated", "code": 0, "devicesRemoved": 1 }. A hostId that isn't activated on the license, or a blocked license, returns 404 with errorCode: "license_not_found".
A device that was given an offline license keeps its activation until that offline license expires, because the signed file keeps working offline. Deactivating that device returns 409 with offlineValidUntil. When hostId is omitted, the other devices are removed and the response includes devicesKept. A reset from your dashboard frees every device.
Authorization header.Use a unique value to safely retry this request without repeating its effects.
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6dThe product ID. 22–256 characters.
The license key. 20–256 characters.
The device to deactivate. Required for `client` keys; an admin key may omit it to remove every device (devices holding an unexpired offline license are kept). 1–64 characters.
Devices removed by this call.
Present when `hostId` was omitted and some devices were kept because they hold an unexpired offline license.