Destroy Expirations
Deletes expiration records for a user's courses, learning paths, and licenses
Deletes expiration records for a user's courses, learning paths, and licenses.
POST
https://example.thoughtindustries.com/incoming/v2/users/:id/deleteExpirationsExample request
curl -X POST "https://example.thoughtindustries.com/incoming/v2/users/:id/deleteExpirations" \
-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 | Unique identifier of the user whose expirations will be deleted. |
courseIds | uuid[] | Yes | body | One or more course IDs whose expiration records will be removed for the user. |
learningPathIds | uuid[] | Yes | body | One or more learning path IDs whose expiration records will be removed for the user. |
licenseIds | uuid[] | Yes | body | One or more license IDs whose expiration records will be removed for the user. |
Example response
{
"data": {
"APIDestroyExpirations": {
"updatedRecordCount": 0,
"errors": [
"string"
]
}
}
}Response fields
| Field | Type | Description |
|---|---|---|
updatedRecordCount | integer | Number of expiration records successfully deleted. |
errors | string[] | List of error messages for any expiration records that could not be deleted. |