Skip to content

Deactivate

POST /{tenantId}/{productId}/deactivate

Releases an instance slot so the license can be activated on another device. Uses the common headers & path parameters.

FieldTypeRequiredDescription
license_keystringyesThe license key
instance_idstringyesThe instance to release
Terminal window
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"
}'
{ "deactivated": true }
StatusCondition
401Missing / invalid SDK key
404Tenant / product / license key, or instance, not found

Deactivating an already-deactivated instance is idempotent — it returns 200.