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
}'
{
  "licenseId": "lic.fdjsl.313",
  "accountId": "acc.fdjsl.313",
  "quantity": 10,
  "effectiveFrom": "2020-01-01T00:00:00Z",
  "createdAt": "2021-03-04T14:25:10Z"
}

Authorizations

Authorization
string
headerrequired

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

Body

application/json
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
enum<string>
required

The type of update to be performed

Available options:
RELATIVE,
ABSOLUTE
quantity
integer
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
licenseId
string
required
accountId
string
required
quantity
integer
required

Absolute quantity of the license

effectiveFrom
string
required
metadata
object
createdAt
string
required