Retrieving and Setting the Number of Remaining Monthly Activations for a Plesk Key
Use this method to retrieve the number of remaining monthly activations for a Plesk key.
Signature
Request:
- URL: /30/keys/<KEY_NUMBER>/remaining-activations
- Method: GET
- Body: no
Response:
- Success Status Code: 200
- Body: Structure KeyRemainingActivations
Example
Request:
GET /30/keys/2829019/remaining-activations HTTP/1.1
Response:
HTTP/1.1 200 OK
[
{
"keyNumber": 2829019,
"remainingActivations": 2
}
]
Use this method to set the number of remaining monthly activations for a Plesk key.
Signature
Request:
- URL: /30/keys/<KEY_NUMBER>/remaining-activations
- Method: POST
- Body: no
- Required query string parameter:
-
remaining-activations
(non-negative integer). The new value of remaining monthly activations for the Plesk key. Setting it to zero disables the key from being activated during the current month.
-
Response:
- Success Status Code: 202