Skip to main content
https://.thoughtindustries.com

Licenses

Updates an existing license by ID, replacing or appending its associated courses, learning paths, and course tags, along with any metadata such as name, seat limits, and expiration date

Updates an existing license by ID, replacing or appending its associated courses, learning paths, and course tags, along with any metadata such as name, seat limits, and expiration date.

PUThttps://example.thoughtindustries.com/incoming/v2/licenses/:id

Example request

curl -X PUT "https://example.thoughtindustries.com/incoming/v2/licenses/:id" \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "courseIds": "00000000-0000-0000-0000-000000000000",
  "learningPathIds": "00000000-0000-0000-0000-000000000000",
  "courseTagIds": "00000000-0000-0000-0000-000000000000",
  "replaceCourseIds": true
}'

Parameters

NameTypeRequiredLocationDescription
iduuidYespathThe id identifier.
courseIdsuuid[]YesbodyIDs of the courses to associate with this license.
learningPathIdsuuid[]YesbodyIDs of the learning paths to associate with this license.
courseTagIdsuuid[]YesbodyIDs of the course tags to associate with this license.
replaceCourseIdsbooleanNobodyWhen true, replaces the existing course list with the provided courseIds; when false, appends to the existing list.
replaceLearningPathIdsbooleanNobodyWhen true, replaces the existing learning path list with the provided learningPathIds; when false, appends to the existing list.
replaceCourseTagIdsbooleanNobodyWhen true, replaces the existing course tag list with the provided courseTagIds; when false, appends to the existing list.
namestringYesbodyDisplay name of the license.
labelstringNobodyShort label used to identify the license in listings and reports.
skustringNobodyStock-keeping unit code for the license.
seatsLimitintegerNobodyMaximum number of seats available under this license; omit or set to 0 for unlimited.
parentLicenseIduuidNobodyID of the parent license when this license is part of a hierarchy.
accessDaysintegerNobodyNumber of days a learner retains access to licensed content after enrollment.
expirationDateISO 8601 timestampNobodyDate and time at which the license expires, in ISO 8601 format.
enableBrandingbooleanNobodyWhen true, applies the license-level branding overrides to the learner experience.
isDefaultbooleanNobodyWhen true, marks this license as the default for its client.
ref1stringNobodyCustom reference field 1 for storing external identifiers or metadata.
ref2stringNobodyCustom reference field 2 for storing external identifiers or metadata.
ref3stringNobodyCustom reference field 3 for storing external identifiers or metadata.
ref4stringNobodyCustom reference field 4 for storing external identifiers or metadata.
ref5stringNobodyCustom reference field 5 for storing external identifiers or metadata.
ref6stringNobodyCustom reference field 6 for storing external identifiers or metadata.
ref7stringNobodyCustom reference field 7 for storing external identifiers or metadata.
ref8stringNobodyCustom reference field 8 for storing external identifiers or metadata.
ref9stringNobodyCustom reference field 9 for storing external identifiers or metadata.
ref10stringNobodyCustom reference field 10 for storing external identifiers or metadata.

Example response

{
  "id": "00000000-0000-0000-0000-000000000000",
  "courseIds": [
    "00000000-0000-0000-0000-000000000000"
  ],
  "learningPathIds": [
    "00000000-0000-0000-0000-000000000000"
  ],
  "courseTagIds": [
    "00000000-0000-0000-0000-000000000000"
  ],
  "name": "string",
  "label": "string",
  "sku": "string",
  "seatsLimit": 0,
  "enableBranding": true,
  "parentLicenseId": "00000000-0000-0000-0000-000000000000",
  "accessDays": 0,
  "expirationDate": "2024-01-01T00:00:00.000Z",
  "isDefault": true,
  "ref1": "string",
  "ref2": "string",
  "ref3": "string",
  "ref4": "string",
  "ref5": "string",
  "ref6": "string",
  "ref7": "string",
  "ref8": "string",
  "ref9": "string",
  "ref10": "string"
}

Response fields

FieldTypeDescription
iduuidIdentifier of the license.
courseIdsuuid[]Identifiers of courses granted by the license.
learningPathIdsuuid[]Identifiers of learning paths granted by the license.
courseTagIdsuuid[]Identifiers of course tags granted by the license.
namestringName of the license.
labelstringDisplay label of the license.
skustringSKU of the license.
seatsLimitintegerMaximum number of seats on the license.
enableBrandingbooleanWhether custom branding is enabled for the license.
parentLicenseIduuidIdentifier of the parent license, when nested.
accessDaysintegerNumber of access days granted by the license.
expirationDateISO 8601 timestampExpiration date of the license.
isDefaultbooleanWhether this is the default license for the client.
ref1stringCustom reference field 1 on the license.
ref2stringCustom reference field 2 on the license.
ref3stringCustom reference field 3 on the license.
ref4stringCustom reference field 4 on the license.
ref5stringCustom reference field 5 on the license.
ref6stringCustom reference field 6 on the license.
ref7stringCustom reference field 7 on the license.
ref8stringCustom reference field 8 on the license.
ref9stringCustom reference field 9 on the license.
ref10stringCustom reference field 10 on the license.