Skip to content

Update a license

Changes a license, and suspends or reinstates it.

PATCH /v1/licenses/{license}

Use cases

  • Move the expiry date of a license when a customer renews.
  • Suspend a license when a payment fails, and reinstate it when the customer pays.
  • Give a license to another customer, or change its limits.

Authentication

Send an API key. This endpoint requires the scope licenses:write. See Authentication and Scopes.

An integration that is limited to one product can update only the licenses of that product. See Product.

Request

Path parameters

ParameterTypeDescription
licensestringThe ID of the license.

Headers

HeaderRequiredDescription
AuthorizationYesThe word Bearer, a space and the API key.
Content-TypeYesapplication/json.

Body

Send only the fields that you want to change. A field that you leave out keeps its value. A field that you send as null is cleared.

FieldTypeRequiredDescription
customer_idstring or nullNoThe ID of the customer who owns the license. Send null to remove the owner. See Customers.
namestring or nullNoThe name of the license. Send null to remove the name.
expires_atstring or nullNoThe time when the license expires. Send null to remove the expiry date. See Expiry.
expiration_strategystring or nullNoThe After expiry rule of the license itself: expire, keep_access or perpetual_fallback. Send null to use the rule of the policy. See License overrides.
max_devicesinteger or nullNoThe device limit of the license itself. Send null to use the limit of the policy.
max_seatsinteger or nullNoThe seat limit of the license itself. Send null to use the limit of the policy.
max_processesinteger or nullNoThe process limit per device of the license itself. Send null to use the limit of the policy.
suspendedbooleanNotrue suspends the license, and false reinstates it. A license that is already in this state does not change. See Suspension.

A license cannot override a setting that its policy does not use. For example, max_devices is allowed only when the policy binds devices. See License overrides.

If one field is not valid, the license does not change. That includes the suspension.

Response

The answer has the status 200.

FieldTypeDescription
idstringThe ID of the license.
product_idstringThe ID of the product of the license.
policy_idstringThe ID of the policy that the license was issued from.
customer_idstring or nullThe ID of the customer who owns the license. It is null when the license has no owner.
customerobject or nullThe customer who owns the license. It is null when the license has no owner. See Customer.
namestring or nullThe name of the license.
keystringThe license key. See License keys.
statusstringactive, grace, expired or suspended. See Statuses.
expires_atstring or nullThe time when the license expires. It is null when the license has no expiry date. See Expiry.
activated_atstring or nullThe time of the first successful claim. It is null when the license was never claimed.
suspended_atstring or nullThe time when the license was suspended. It is null when the license is not suspended.
last_validated_atstring or nullThe time of the last validation through the License API. It is null when the license was never validated.
expiration_strategystring or nullThe After expiry rule of the license itself: expire, keep_access or perpetual_fallback. It is null when the rule of the policy applies. See License overrides.
max_devicesinteger or nullThe device limit of the license itself. It is null when the limit of the policy applies.
max_seatsinteger or nullThe seat limit of the license itself. It is null when the limit of the policy applies.
max_processesinteger or nullThe process limit per device of the license itself. It is null when the limit of the policy applies.
resolvedobjectThe settings that apply to the license. The overrides of the license are already applied to the settings of the policy. See Resolved.
created_atstringThe time when the license was created.
updated_atstringThe time when the license was last changed.

Customer

FieldTypeDescription
idstringThe ID of the customer.
external_refstringThe ID of the customer in your own system. See Customers.
emailstring or nullThe email address of the customer.
first_namestring or nullThe first name of the customer.
last_namestring or nullThe last name of the customer.

Resolved

FieldTypeDescription
duration_secondsinteger or nullThe duration of a license in seconds. It is null when the policy is a lifetime policy.
grace_period_secondsinteger or nullThe grace period in seconds. It is null when the policy has no grace period.
expiration_basisstringissue or first_activation. The duration starts when the license is created or at the first claim.
expiration_strategystringexpire, keep_access or perpetual_fallback. See After expiry.
binds_devicebooleanA claim must send a device fingerprint.
binds_customerbooleanA claim must name the customer who takes the seat.
max_devicesinteger or nullThe device limit. It is null when there is no limit.
max_seatsinteger or nullThe seat limit. It is null when there is no limit.
max_processesinteger or nullThe process limit per device. It is null when there is no limit.
requires_heartbeatbooleanEach device keeps its binding with heartbeats.
heartbeat_interval_secondsinteger or nullThe time between two heartbeats in seconds.
heartbeat_grace_secondsinteger or nullThe extra time for a late heartbeat in seconds.
process_interval_secondsinteger or nullThe time between two process heartbeats in seconds. It is null when process tracking is off.
process_grace_secondsinteger or nullThe extra time for a late process heartbeat in seconds.
offline_validationbooleanThe application can check out a signed license file.
license_file_ttl_secondsinteger or nullThe lifetime of a license file in seconds. It is null when the default of 30 days applies.
license_file_encryptedbooleanLicense files are encrypted.
entitlementsarray of objectsThe entitlements of the policy together with the entitlements of the license. See Entitlement.

See Policies for the meaning of each setting.

Entitlement

FieldTypeDescription
idstringThe ID of the entitlement.
codestringThe code that your application checks for, such as PRO.
namestringThe name of the feature.
descriptionstring or nullA sentence that says what the entitlement unlocks.
created_atstringThe time when the entitlement was created.
updated_atstringThe time when the entitlement was last changed.

Errors

StatusReasonDescription
400The request body could not be read.The body is not valid JSON, or a field has the wrong type.
400The submitted details are not valid.A field is not valid. The errors field names it. See the table below.
400The selected customer is not valid.No customer in your account has the ID in customer_id.
401An API key is required.The request has no Authorization header, the header is empty, or the header does not use the Bearer scheme.
401The API key is not valid.No integration has this key.
401The API key has expired.The expiry date of the key has passed.
403This integration does not have the licenses:write scope.The integration does not have licenses:write.
404The license was not found.No license in your account has this ID. An integration that is limited to one product gets the same answer for a license of another product.
429There are too many requests. Try again later.See Rate limits.

These fields can be in errors:

FieldDescription
customer_idThe customer ID is not valid, or it is not a customer of your account.
nameThe name is too long.
expiration_strategyThe value is not expire, keep_access or perpetual_fallback. Or the policy has no duration, and the value is not expire.
max_devicesThe limit is less than one, or the policy does not bind devices.
max_seatsThe limit is less than one, or the policy does not bind customers.
max_processesThe limit is less than one, or the policy does not track processes.
suspendedThe value is null.

See Errors.

Example

curl -X PATCH https://api.seatify.dev/v1/licenses/$LICENSE_ID \
  -H "Authorization: Bearer $SEATIFY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "suspended": true
  }'

The answer:

{
  "id": "<license id>",
  "product_id": "<product id>",
  "policy_id": "<policy id>",
  "customer_id": "<customer id>",
  "customer": {
    "id": "<customer id>",
    "external_ref": "usr_000175",
    "email": "paloma.ivanova174@meridian.example",
    "first_name": "Paloma",
    "last_name": "Ivanova"
  },
  "name": "DRYDOCK Academic Annual #0399",
  "key": "<license key>",
  "status": "suspended",
  "expires_at": "2027-06-08T23:00:00Z",
  "activated_at": "2026-07-21T02:07:12Z",
  "suspended_at": "2026-09-27T20:52:33Z",
  "last_validated_at": "2026-09-17T23:00:00Z",
  "expiration_strategy": null,
  "max_devices": null,
  "max_seats": null,
  "max_processes": null,
  "resolved": {
    "duration_seconds": 31536000,
    "grace_period_seconds": 2592000,
    "expiration_basis": "issue",
    "expiration_strategy": "expire",
    "binds_device": true,
    "binds_customer": true,
    "max_devices": 2,
    "max_seats": 1,
    "max_processes": null,
    "requires_heartbeat": false,
    "heartbeat_interval_seconds": null,
    "heartbeat_grace_seconds": null,
    "process_interval_seconds": null,
    "process_grace_seconds": null,
    "offline_validation": false,
    "license_file_ttl_seconds": null,
    "license_file_encrypted": false,
    "entitlements": [
      {
        "id": "<entitlement id>",
        "code": "AUDIT_LOG",
        "name": "Audit Log",
        "description": "Records every action for compliance review.",
        "created_at": "2025-08-12T23:00:00Z",
        "updated_at": "2025-08-12T23:00:00Z"
      },
      {
        "id": "<entitlement id>",
        "code": "BATCH",
        "name": "Batch Processing",
        "description": "Queues and runs jobs unattended.",
        "created_at": "2025-09-14T23:00:00Z",
        "updated_at": "2025-09-14T23:00:00Z"
      },
      {
        "id": "<entitlement id>",
        "code": "CORE",
        "name": "Core",
        "description": "The base feature set every license carries.",
        "created_at": "2025-06-24T23:00:00Z",
        "updated_at": "2025-06-24T23:00:00Z"
      },
      {
        "id": "<entitlement id>",
        "code": "EXPORT_4K",
        "name": "4K Export",
        "description": "Renders and exports at up to 4K resolution.",
        "created_at": "2025-08-04T23:00:00Z",
        "updated_at": "2025-08-04T23:00:00Z"
      },
      {
        "id": "<entitlement id>",
        "code": "WHITE_LABEL",
        "name": "White Labelling",
        "description": "Replaces vendor branding with the customer's.",
        "created_at": "2025-07-02T23:00:00Z",
        "updated_at": "2025-07-02T23:00:00Z"
      }
    ]
  },
  "created_at": "2026-06-08T23:00:00Z",
  "updated_at": "2026-09-27T20:52:33Z"
}