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
headerrequired

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

Body

application/json

License update request

licenseId
string
required

The license id for which the update is requested

Maximum length: 50
accountId
string
required

The account id for which the license is being updated

Maximum length: 50
updateType
enum<string>
required

The type of update to be performed

Available options:
RELATIVE,
ABSOLUTE
quantity
number
required

The quantity to be updated

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

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

Absolute quantity of the license

effectiveFrom
string
required
createdAt
string
required
metadata
object