Update License Key

Added in v1.0
PUT https://api.example.com/api/keys/{id}
Requires authentication: X-API-Key: YOUR_API_KEY

Updates an existing license key details. Content defaults to existing data if not provided in the body. Returns updated key object.

Path parameters

  • id integer required
    Example: 1

Body parameters

  • disabled boolean optional
    Example: false
  • ip string optional
    Example: 203.0.113.10
  • locked boolean optional
    Example: true

Responses

  • 200Success
  • 400License key not found
Request
curl -X PUT 'https://api.example.com/api/keys/1' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "disabled": false,
  "ip": "203.0.113.10",
  "locked": true
}'
Response
Success
{
  "id": 1,
  "uuid": "123",
  "product": 456,
  "key": "0190a5f3-7c1e-7b2a-9d4e-3f8a6c1b2d90",
  "ip": "203.0.113.10",
  "status": true,
  "disabled": false,
  "locked": true,
  "lastSeen": 1790000000000
}