---
title: "Replace the instance license"
method: PUT
path: "/api/v1/license"
tags: ["System"]
---

# Replace the instance license

`PUT /api/v1/license`

## Request

- Base URL: `https://pcp.example.com`
- URL: `https://pcp.example.com/api/v1/license`
- Auth: HTTP bearer

Installs a freshly issued offline license. It must verify against the builtin offline keys and be minted for the enrolled organization. Owner only.

## Request body

- LicenseUpdateRequest: LicenseUpdateRequest schema
  - `license` string, required

## Response `200`

OK

- License: License schema
  - `expires_at` string, date-time
  - `identity_id` string, uuid
  - `issued_at` string, date-time
  - `mode` string, nullable
  - `organization_id` string, uuid
  - `plan` string
  - `quota_hard` integer
  - `quota_soft` integer

## Other responses

- `400`: Bad Request _(validation or deserialization error)_
- `401`: Missing, invalid or expired credentials
- `403`: The caller may not do this
- `500`: Internal Server Error _(panics)_
- `default`

---

[API](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1.md) - [All operations](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1/revisions/2ac049494a01?raw)
