Update Activation
Updates an existing activation. Use this to activate or deactivate an activation by flipping its activated flag — for example, to remotely re-enable a device you previously turned off, or to disable one from your backend or admin tooling.
PUT https://api.keyzy.io/v2/activations/{id}
The {id} is the activation’s id, as returned by Get Activations.
Requires a write API key. Never embed a write key in a distributable application — anyone who extracts it could modify or delete your licenses.
Parameters
| Parameter | Description |
|---|---|
| id | id of the activation object |
Arguments
| Parameter | Description |
|---|---|
| app_id | An app_id that has write permission |
| api_key | An api_key that has write permission |
| activated | true to activate the activation, false to deactivate it |
Returns
Success
{
"message": "Activation successfully updated."
}
Errors
You are not authorized
{
"error": {
"message": "You are not authorized!",
"status_code": 401
}
}
Activation does not exist
{
"error": {
"message": "Activation does not exist!",
"status_code": 404
}
}
Missing or invalid activated (the activated argument is required and must be a boolean)
{
"error": {
"message": {
"activated": [
"The activated field is required."
]
},
"status_code": 422
}
}