---
title: "PUT /api/v1/license-keys/{licenseKeyId}"
method: PUT
path: "/api/v1/license-keys/{licenseKeyId}"
tags: ["Licensing"]
---

# PUT /api/v1/license-keys/{licenseKeyId}

`PUT /api/v1/license-keys/{licenseKeyId}`

## Request

- Base URL: `https://app.distr.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://app.distr.sh/api/v1/license-keys/{licenseKeyId}`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Update license key metadata and optionally create a new revision

## Path parameters

- `licenseKeyId` string, required

## Query parameters

- `confirm` boolean

## Request body

- object
  - `description` string, nullable
  - `expiresAt` string, date-time, nullable
  - `licenseTemplateId` string, nullable
  - `notBefore` string, date-time, nullable
  - `payload` string, byte, nullable

## Response `200`

OK

- ApiUpdateLicenseKeyResponse
  - `affectedDeployments` ApiAffectedDeployment[]
    - `applicationName` string
    - `deploymentId` string
    - `deploymentTargetId` string
    - `deploymentTargetName` string
  - `createdAt` string, date-time
  - `customerOrganizationId` string, nullable
  - `description` string, nullable
  - `expiresAt` string, date-time, nullable
  - `id` string
  - `lastRevisedAt` string, date-time, nullable
  - `licenseTemplateId` string, nullable
  - `name` string
  - `notBefore` string, date-time, nullable
  - `payload` string, byte

## Other responses

- `409`: Conflict

---

[API](https://skmtc.dev/distr/apis/distr-api-reference.md) - [All operations](https://skmtc.dev/distr/apis/distr-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/distr/apis/distr-api-reference/revisions/7dcafe205f83?raw)
