Deactivate
POST
/{tenantId}/{productId}/deactivate Releases an instance slot so the license can be activated on another device. Uses the common headers & path parameters.
Request body
Section titled “Request body”| Field | Type | Required | Description |
|---|---|---|---|
license_key | string | yes | The license key |
instance_id | string | yes | The instance to release |
curl -X POST https://api.keylight.dev/acme/notes/deactivate \ -H "Content-Type: application/json" \ -H "X-Keylight-SDK-Key: $KEYLIGHT_SDK_KEY" \ -d '{ "license_key": "ACME-XXXX-XXXX-XXXX-XXXX", "instance_id": "5f7e7b9a-1c2d-4e3f-9a8b-7c6d5e4f3a2b" }'await kl.deactivate();Response (200)
Section titled “Response (200)”{ "deactivated": true }Errors
Section titled “Errors”| Status | Condition |
|---|---|
401 | Missing / invalid SDK key |
404 | Tenant / product / license key, or instance, not found |
Deactivating an already-deactivated instance is idempotent — it returns 200.