v1

latestOpenAPI 3.0.3Apache 2.02026-07-13121230447.8 KB
Licenses

Update a license entry

This API let’s you to add a license entry

post/license_updates

Request body

licenseIdstring required

The license id for which the update is requested

accountIdstring required

The account id for which the license is being updated

updateType'RELATIVE' | 'ABSOLUTE' required

The type of update to be performed

quantitynumber required

The quantity to be updated

effectiveFromstring date-time

The effective from date for the update

idempotencyKeystring

The idempotency key for uniqueness of the license update request

metadataobject

Example request

{
  "licenseId": "lic.fdjsl.313",
  "accountId": "acc.fdjsl.313",
  "effectiveFrom": "2021-03-04T14:25:10Z",
  "idempotencyKey": "idempotencyKey#1",
  "metadata": {
    "key1": "value1",
    "key2": "value2"
  }
}

Response

Success response

licenseIdstring required
accountIdstring required
quantitynumber required

Absolute quantity of the license

effectiveFromstring date-time required
metadataobject
createdAtstring date-time required

Example response

{
  "licenseId": "lic.fdjsl.313",
  "accountId": "acc.fdjsl.313",
  "quantity": 10,
  "effectiveFrom": "2021-03-04T14:25:10Z",
  "metadata": {
    "key1": "value1",
    "key2": "value2"
  },
  "createdAt": "2021-03-04T14:25:10Z"
}