POST
/
license_updates
curl --request POST \
  --url https://api.togai.com/license_updates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "licenseId": "addon.21LdC76myzw.uiSWm",
  "accountId": "account#1",
  "updateType": "ABSOLUTE",
  "quantity": 10
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

License update request

accountId
string
required

The account id for which the license is being updated

Maximum length: 50
licenseId
string
required

The license id for which the update is requested

Maximum length: 50
quantity
number
required

The quantity to be updated

updateType
enum<string>
required

The type of update to be performed

Available options:
RELATIVE,
ABSOLUTE
effectiveFrom
string

The effective from date for the update

idempotencyKey
string

The idempotency key for uniqueness of the license update request

metadata
object

Response

200 - application/json

License update

accountId
string
required
Maximum length: 50
createdAt
string
required
effectiveFrom
string
required
licenseId
string
required
Maximum length: 50
quantity
number
required

Absolute quantity of the license

metadata
object