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

Fields

  • keyNumber: number
  • remainingActivations: number

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

Example

Request:

POST /30/keys/2829019/remaining-activations?remaining-activations=10 HTTP/1.1

Response:

HTTP/1.1 202 Accepted