Skip to content

Update License

Update an existing license.

PATCH /v1/licenses/:id

Path Parameters

ParameterDescription
idLicense ID

Request Body

All fields are optional. Only include fields you want to update.

json
{
  "status": "suspended",
  "seats": 10,
  "expiresAt": "2028-02-06T00:00:00.000Z"
}
FieldTypeDescription
statusstringactive, suspended, or revoked
seatsnumberMax activations
expiresAtstringExpiration date (ISO 8601), null to remove

Response

json
{
  "data": {
    "id": "lic_xxx",
    "licenseKey": "MYPLUGIN-XXXX-XXXX-XXXX-XXXX",
    "status": "suspended",
    "seats": 10,
    "expiresAt": "2028-02-06T00:00:00.000Z",
    "updatedAt": "2026-02-06T12:00:00.000Z"
  }
}

Example

bash
curl -X PATCH "https://api.packedge.dev/v1/licenses/lic_xxx" \
  -H "Authorization: Bearer pk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "seats": 10,
    "expiresAt": "2028-02-06T00:00:00.000Z"
  }'

Actions

Revoke License

Set status to revoked to permanently disable a license and deactivate all activations:

bash
curl -X PATCH "https://api.packedge.dev/v1/licenses/lic_xxx" \
  -H "Authorization: Bearer pk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"status": "revoked"}'

Suspend License

Set status to suspended to temporarily disable a license:

bash
curl -X PATCH "https://api.packedge.dev/v1/licenses/lic_xxx" \
  -H "Authorization: Bearer pk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"status": "suspended"}'