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

Licenses

Creates a new license and associates it with the specified client, courses, learning paths, and course tags

Creates a new license and associates it with the specified client, courses, learning paths, and course tags.

POSThttps://example.thoughtindustries.com/incoming/v2/licenses

Example request

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

Parameters

NameTypeRequiredLocationDescription
clientIduuidYesbodyID of the client to associate this license with.
courseIdsuuid[]YesbodyIDs of the courses to include in this license.
learningPathIdsuuid[]YesbodyIDs of the learning paths to include in this license.
courseTagIdsuuid[]YesbodyIDs of the course tags to include in this license.
replaceCourseIdsbooleanNobodyWhen true, replaces the client's existing course assignments with the provided courseIds instead of appending.
replaceLearningPathIdsbooleanNobodyWhen true, replaces the client's existing learning path assignments with the provided learningPathIds instead of appending.
replaceCourseTagIdsbooleanNobodyWhen true, replaces the client's existing course tag assignments with the provided courseTagIds instead of appending.
namestringYesbodyDisplay name of the license.
labelstringNobodyShort label used to identify the license in listings and reports.
skustringNobodyStock-keeping unit identifier for the license.
seatsLimitintegerNobodyMaximum number of seats available under this license; omit for unlimited seats.
parentLicenseIduuidNobodyID of the parent license when creating a child license in 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 client's custom branding to the license experience.
isDefaultbooleanNobodyWhen true, designates this license as the default for the client.
ref1stringNobodyCustom reference field 1 for storing arbitrary metadata.
ref2stringNobodyCustom reference field 2 for storing arbitrary metadata.
ref3stringNobodyCustom reference field 3 for storing arbitrary metadata.
ref4stringNobodyCustom reference field 4 for storing arbitrary metadata.
ref5stringNobodyCustom reference field 5 for storing arbitrary metadata.
ref6stringNobodyCustom reference field 6 for storing arbitrary metadata.
ref7stringNobodyCustom reference field 7 for storing arbitrary metadata.
ref8stringNobodyCustom reference field 8 for storing arbitrary metadata.
ref9stringNobodyCustom reference field 9 for storing arbitrary metadata.
ref10stringNobodyCustom reference field 10 for storing arbitrary 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.