API referenceSections

Replace the license with a signed one issued for this installation

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/license

Replace the license with a signed one issued for this installation

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • license string required

    The signed license file's content

Example
{
  "license": "string"
}

Responses

200 License

Content type: application/json

  • install_id string required
  • state string required
    Allowed values: "none" "valid" "grace" "expired"
  • limits object required
    • edition string required
    • max_servers integer required

      0 is no limit

    • max_sites integer required

      0 is no limit

  • servers integer required
  • sites integer required
  • license object | null required
    • license_id string required
    • licensee string required
    • edition string required
    • max_servers integer required
    • max_sites integer required
    • expires_at string (date-time) required
    • grace_until string (date-time) required
Example
{
  "install_id": "string",
  "state": "none",
  "limits": {
    "edition": "string",
    "max_servers": 0,
    "max_sites": 0
  },
  "servers": 0,
  "sites": 0,
  "license": {
    "license_id": "string",
    "licensee": "string",
    "edition": "string",
    "max_servers": 0,
    "max_sites": 0,
    "expires_at": "2026-01-01T00:00:00Z",
    "grace_until": "2026-01-01T00:00:00Z"
  }
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required