Documentation
license_keys

Update License Key

patch
/v1/license-keys/{id}
Update a license key.
curl -X PATCH \
    https://api.polar.sh/v1/license-keys/00000000-0000-0000-0000-000000000000 \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer <token>" \
    -d '{}'
Responses
{
  "id": "00000000-0000-0000-0000-000000000000",
  "organization_id": "00000000-0000-0000-0000-000000000000",
  "user_id": "00000000-0000-0000-0000-000000000000",
  "benefit_id": "00000000-0000-0000-0000-000000000000",
  "key": "string",
  "display_key": "string",
  "status": "granted",
  "limit_activations": 0,
  "usage": 0,
  "limit_usage": 0,
  "validations": 0,
  "last_validated_at": "2024-09-19T00:00:00.000Z",
  "expires_at": "2024-09-19T00:00:00.000Z"
}