---
title: "Update a license entry details"
method: PATCH
path: "/license_updates/{license_id}"
tags: ["Licenses"]
---

# Update a license entry details

`PATCH /license_updates/{license_id}`

## Request

- Base URL: `https://api.togai.com`
- URL: `https://api.togai.com/license_updates/{license_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/togaihq/apis/togai-apis/docs/license_updates/:license_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

This API let’s you to update metadata of a license entry

## Query parameters

- `licenseId` string

## Request body

- LicenseEntryDetailsUpdateRequest: License Entry Details update request
  - `accountId` string, required: The account id for which the license is being updated
  - `effectiveFrom` string, date-time, required: The effective from date of the license entry
  - `metadata` object, required

## 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 update a license entry.
- `429`: Request throttled. Please check the response message on the failure details.
- `default`: Error response

## Changes

- **2024-07-11** `5abfbfe439be`: 1 breaking
  - the `allOf[#/components/schemas/LicenseUpdate]/quantity` response's property type changed from `integer` to `number` for status `200`
- **2024-01-05** `ea9c4628bfdb`: 1 info
  - endpoint added
- **2023-09-02** `6b13f6f47735`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/togaihq/apis/togai-apis/changes/license_updates/:license_id/patch.md)

---

[API](https://skmtc.dev/togaihq/apis/togai-apis.md) - [All operations](https://skmtc.dev/togaihq/apis/togai-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/togaihq/apis/togai-apis/revisions/442f5d8f4aa0?raw)
