---
title: "Update a license entry"
method: POST
path: "/license_updates"
tags: ["Licenses"]
---

# Update a license entry

`POST /license_updates`

This API let’s you to add a license entry

## Request body

- LicenseUpdateRequest — License update request
  - `licenseId` string, required — The license id for which the update is requested
  - `accountId` string, required — The account id for which the license is being updated
  - `updateType` 'RELATIVE' | 'ABSOLUTE', required — The type of update to be performed
  - `quantity` number, required — The quantity to be updated
  - `effectiveFrom` string, date-time — The effective from date for the update
  - `idempotencyKey` string — The idempotency key for uniqueness of the license update request
  - `metadata` object

## Response `200`

Success response

- LicenseUpdateResponse — License update
  - `licenseId` string, required
  - `accountId` string, required
  - `quantity` number, required — Absolute quantity of the license
  - `effectiveFrom` string, date-time, required
  - `metadata` object
  - `createdAt` string, date-time, required

## Other responses

- `400` — Bad request. Please check the response message for failure details.
- `401` — Credential is not valid. Please check the response message for failure details.
- `403` — Credential does not have access to add a license entry.
- `422` — Unable to process the query parameters provided. Please check our docs for the api limits - https://togai.io/docs/limits.
- `429` — Request throttled. Please check the response message on the failure details.
- `default` — Error response

---

[API](https://skmtc.net/togaihq/apis/togai-apis.md) · [All operations](https://skmtc.net/togaihq/apis/togai-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/togaihq/togai-apis/revisions/442f5d8f4aa0/schema)
