---
title: "Update License Key"
method: PATCH
path: "/v1/license-keys/{id}"
tags: ["license_keys", "public"]
---

# Update License Key

`PATCH /v1/license-keys/{id}`

Update a license key.

**Scopes**: `license_keys:write`

## Path parameters

- `id` string, uuid4, required

## Request body

- LicenseKeyUpdate
  - `status` 'granted' | 'revoked' | 'disabled'
  - `usage` integer
  - `limit_activations` integer, nullable
  - `limit_usage` integer, nullable
  - `expires_at` string, date-time, nullable

## Response `200`

Successful Response

- LicenseKeyRead — unresolved $ref

## Other responses

- `401` — Not authorized to manage license key.
- `404` — License key not found.
- `422` — Validation Error

---

[API](https://skmtc.net/polar/apis/polar-api.md) · [All operations](https://skmtc.net/polar/apis/polar-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/polar/polar-api/revisions/77e4ef94fcc3/schema)
