---
title: "Update License Key"
method: POST
path: "/purchase/updatelicensekey"
tags: ["Purchase API"]
---

# Update License Key

`POST /purchase/updatelicensekey`

Updates the license key for an item in an existing purchase.<br />For XML examples and schemas, see the [Additional Examples - Update License Key](https://dev.cleverbridge.com/page/additional-examples-update-license-key).

## Headers

- `Accept` 'application/json' | 'application/xml'
- `Content-Type` 'application/json' | 'application/xml'

## Request body

- CleverbridgeBackEndRestApiPurchaseClassesUpdateLicenseKeyRequest
  - `LicenseKey` string, required — New license key for an item in an existing purchase.
  - `PurchaseId` integer, required — Unique ID of an existing purchase.
  - `PurchaseItemRunningNumber` integer, required — Running number of the item in the purchase.

## Response `200`

OK

- CleverbridgeBackEndRestApiPurchaseClassesUpdateLicenseKeyResponse
  - `ResultMessage` string — Optional result or error message.

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.net/cleverbridge/apis/backend-rest-apis.md) · [All operations](https://skmtc.net/cleverbridge/apis/backend-rest-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cleverbridge/backend-rest-apis/versions/b7007b62f4c0/schema)
