Update Expirations
Creates or updates expiration dates for a user's courses, learning paths, and licenses
Creates or updates expiration dates for a user's courses, learning paths, and licenses.
POST
https://example.thoughtindustries.com/incoming/v2/users/:id/expirationsExample request
curl -X POST "https://example.thoughtindustries.com/incoming/v2/users/:id/expirations" \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"userId": "00000000-0000-0000-0000-000000000000",
"courseIds": "00000000-0000-0000-0000-000000000000",
"learningPathIds": "00000000-0000-0000-0000-000000000000",
"licenseIds": "00000000-0000-0000-0000-000000000000"
}'Parameters
| Name | Type | Required | Location | Description |
|---|---|---|---|---|
id | string | Yes | path | The id identifier. |
userId | uuid | Yes | body | The UUID of the user whose expirations are being updated. |
courseIds | uuid[] | Yes | body | One or more UUIDs identifying the courses to apply the expiration date to. |
learningPathIds | uuid[] | Yes | body | One or more UUIDs identifying the learning paths to apply the expiration date to. |
licenseIds | uuid[] | Yes | body | One or more UUIDs identifying the licenses to apply the expiration date to. |
expirationDate | ISO 8601 timestamp | Yes | body | The expiration date and time to set, formatted as an ISO 8601 timestamp. |
Example response
{
"data": {
"APIUpdateExpirations": {
"updatedRecordCount": 0,
"errors": [
"string"
]
}
}
}Response fields
| Field | Type | Description |
|---|---|---|
updatedRecordCount | integer | The number of expiration records successfully updated. |
errors | string[] | A list of error messages describing any records that failed to update. |