Purple LMS API Documentation
Machine-readable OpenAPI 3.0 specification: https://marketplace.moveworks.com/api/purple-suite/lms/openapi.json
The consolidated all-apps document at https://marketplace.moveworks.com/api/purple-suite/openapi.json can be narrowed to this app with ?apps=lms, or combined with other apps comma-separated (e.g. ?apps=lms,itsm).
Overview
Endpoints
GET /api/purple-suite/lms/courses
List courses in the Purple Learn catalog
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Instance-ID | header | string | yes | |
limit | query | integer | no | Legacy page size (default 50). Prefer $top. Ignored when $top/$skip are used. |
cursor | query | string | no | Legacy keyset cursor — pass the previous response's nextCursor. Prefer $skip/$top. |
$filter | query | string | no | OData filter expression. Comparison operators: eq, ne, gt, ge, lt, le. Logical: and, or, not, with parentheses for grouping. String functions: contains(field,'x'), startswith(field,'x'), endswith(field,'x'). Membership: field in ('a','b'). Case-insensitive matching via tolower(field) / toupper(field). Nested fields use a slash, e.g. pto_balance/vacation_days. String literals use single quotes; dates are ISO-8601. Examples: "status eq 'active'"; "salary gt 50000 and department eq 'Engineering'"; "contains(tolower(name),'acme')"; "closeDate gt 2026-01-01". |
$select | query | string | no | Comma-separated list of fields to return, e.g. "id,firstName,email". Nested fields via slash ("pto_balance/vacation_days"). The id field is always included. |
$orderby | query | string | no | Sort clause(s), comma-separated, each "field [asc|desc]" (asc is the default). Example: "createdAt desc, lastName asc". Null values sort last. |
$search | query | string | no | Free-text, case-insensitive substring match across the resource's searchable fields. |
$top | query | integer | no | Maximum number of items to return (page size). |
$skip | query | integer | no | Number of matching items to skip before returning results (offset paging). Combine with $top. |
$count | query | boolean | no | When true, include @odata.count (total matches after $filter/$search, before paging) in the response. |
Responses
200- Paginated list
application/jsondataarrayarray of:
Courseidstringtitlestring requireddescriptionstringskills_taughtarray — Skills this course develops (matches Purple HRS employee skills).Skills this course develops (matches Purple HRS employee skills).array of:
string
levelstringduration_minutesintegerformatstringproviderstringcreatedAtstringupdatedAtstring
nextCursorstring — Cursor for the next page, or null on the last page. With $top/$skip this is the next $skip value; otherwise a keyset cursor.totalinteger — Total documents in the collection.@odata.countinteger — Present only when $count=true: total matches after $filter/$search.@odata.truncatedboolean — Present and true only when the collection exceeded the in-memory query cap and results may be incomplete.
400- Invalid OData query (e.g. malformed $filter)
POST /api/purple-suite/lms/courses
Add a course to the Purple Learn catalog
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Instance-ID | header | string | yes |
Request body
application/json — required
Course
idstringtitlestring requireddescriptionstringskills_taughtarray — Skills this course develops (matches Purple HRS employee skills).Skills this course develops (matches Purple HRS employee skills).array of:
string
levelstringduration_minutesintegerformatstringproviderstringcreatedAtstringupdatedAtstring
Responses
201- Created
application/jsonCourseidstringtitlestring requireddescriptionstringskills_taughtarray — Skills this course develops (matches Purple HRS employee skills).Skills this course develops (matches Purple HRS employee skills).array of:
string
levelstringduration_minutesintegerformatstringproviderstringcreatedAtstringupdatedAtstring
GET /api/purple-suite/lms/courses/{id}
Get one Purple Learn course
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Instance-ID | header | string | yes | |
id | path | string | yes |
Responses
200- Found
application/jsonCourseidstringtitlestring requireddescriptionstringskills_taughtarray — Skills this course develops (matches Purple HRS employee skills).Skills this course develops (matches Purple HRS employee skills).array of:
string
levelstringduration_minutesintegerformatstringproviderstringcreatedAtstringupdatedAtstring
404- Not found
DELETE /api/purple-suite/lms/courses/{id}
Delete a Purple Learn course
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Instance-ID | header | string | yes | |
id | path | string | yes |
Responses
200- Deleted
application/jsonsuccessboolean
404- Not found
PATCH /api/purple-suite/lms/courses/{id}
Update a Purple Learn course
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Instance-ID | header | string | yes | |
id | path | string | yes |
Request body
application/json
Course
idstringtitlestring requireddescriptionstringskills_taughtarray — Skills this course develops (matches Purple HRS employee skills).Skills this course develops (matches Purple HRS employee skills).array of:
string
levelstringduration_minutesintegerformatstringproviderstringcreatedAtstringupdatedAtstring
Responses
200- Updated
application/jsonCourseidstringtitlestring requireddescriptionstringskills_taughtarray — Skills this course develops (matches Purple HRS employee skills).Skills this course develops (matches Purple HRS employee skills).array of:
string
levelstringduration_minutesintegerformatstringproviderstringcreatedAtstringupdatedAtstring
404- Not found
POST /api/purple-suite/lms/courses/{id}/enroll
Enroll a learner in a course
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Instance-ID | header | string | yes | |
id | path | string | yes |
Request body
application/json — required
employee_idstring — Learner's HRS employee ID. Provide this or user_email.user_emailstring — Learner's email. Provide this or employee_id.
Responses
201- Enrollment created
application/jsonEnrollmentidstringcourse_idstringlearnerstring — Resolved learner identifier (employee_id or user_email). Set automatically on enroll.employee_idstringuser_emailstringstatusstringprogress_pctintegerscorenumberenrolled_atstringcompleted_atstringcreatedAtstringupdatedAtstring
400- Missing learner (employee_id or user_email)
404- Course not found
422- Learner already has an active enrollment for this course
GET /api/purple-suite/lms/enrollments
List learner enrollments (training progress)
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Instance-ID | header | string | yes | |
limit | query | integer | no | Legacy page size (default 50). Prefer $top. Ignored when $top/$skip are used. |
cursor | query | string | no | Legacy keyset cursor — pass the previous response's nextCursor. Prefer $skip/$top. |
$filter | query | string | no | OData filter expression. Comparison operators: eq, ne, gt, ge, lt, le. Logical: and, or, not, with parentheses for grouping. String functions: contains(field,'x'), startswith(field,'x'), endswith(field,'x'). Membership: field in ('a','b'). Case-insensitive matching via tolower(field) / toupper(field). Nested fields use a slash, e.g. pto_balance/vacation_days. String literals use single quotes; dates are ISO-8601. Examples: "status eq 'active'"; "salary gt 50000 and department eq 'Engineering'"; "contains(tolower(name),'acme')"; "closeDate gt 2026-01-01". |
$select | query | string | no | Comma-separated list of fields to return, e.g. "id,firstName,email". Nested fields via slash ("pto_balance/vacation_days"). The id field is always included. |
$orderby | query | string | no | Sort clause(s), comma-separated, each "field [asc|desc]" (asc is the default). Example: "createdAt desc, lastName asc". Null values sort last. |
$search | query | string | no | Free-text, case-insensitive substring match across the resource's searchable fields. |
$top | query | integer | no | Maximum number of items to return (page size). |
$skip | query | integer | no | Number of matching items to skip before returning results (offset paging). Combine with $top. |
$count | query | boolean | no | When true, include @odata.count (total matches after $filter/$search, before paging) in the response. |
Responses
200- Paginated list
application/jsondataarrayarray of:
Enrollmentidstringcourse_idstringlearnerstring — Resolved learner identifier (employee_id or user_email). Set automatically on enroll.employee_idstringuser_emailstringstatusstringprogress_pctintegerscorenumberenrolled_atstringcompleted_atstringcreatedAtstringupdatedAtstring
nextCursorstring — Cursor for the next page, or null on the last page. With $top/$skip this is the next $skip value; otherwise a keyset cursor.totalinteger — Total documents in the collection.@odata.countinteger — Present only when $count=true: total matches after $filter/$search.@odata.truncatedboolean — Present and true only when the collection exceeded the in-memory query cap and results may be incomplete.
400- Invalid OData query (e.g. malformed $filter)
POST /api/purple-suite/lms/enrollments
Create an enrollment record directly
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Instance-ID | header | string | yes |
Request body
application/json — required
Enrollment
idstringcourse_idstringlearnerstring — Resolved learner identifier (employee_id or user_email). Set automatically on enroll.employee_idstringuser_emailstringstatusstringprogress_pctintegerscorenumberenrolled_atstringcompleted_atstringcreatedAtstringupdatedAtstring
Responses
201- Created
application/jsonEnrollmentidstringcourse_idstringlearnerstring — Resolved learner identifier (employee_id or user_email). Set automatically on enroll.employee_idstringuser_emailstringstatusstringprogress_pctintegerscorenumberenrolled_atstringcompleted_atstringcreatedAtstringupdatedAtstring
GET /api/purple-suite/lms/enrollments/{id}
Get one learner enrollment
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Instance-ID | header | string | yes | |
id | path | string | yes |
Responses
200- Found
application/jsonEnrollmentidstringcourse_idstringlearnerstring — Resolved learner identifier (employee_id or user_email). Set automatically on enroll.employee_idstringuser_emailstringstatusstringprogress_pctintegerscorenumberenrolled_atstringcompleted_atstringcreatedAtstringupdatedAtstring
404- Not found
DELETE /api/purple-suite/lms/enrollments/{id}
Delete a learner enrollment
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Instance-ID | header | string | yes | |
id | path | string | yes |
Responses
200- Deleted
application/jsonsuccessboolean
404- Not found
PATCH /api/purple-suite/lms/enrollments/{id}
Update enrollment progress or status
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Instance-ID | header | string | yes | |
id | path | string | yes |
Request body
application/json
Enrollment
idstringcourse_idstringlearnerstring — Resolved learner identifier (employee_id or user_email). Set automatically on enroll.employee_idstringuser_emailstringstatusstringprogress_pctintegerscorenumberenrolled_atstringcompleted_atstringcreatedAtstringupdatedAtstring
Responses
200- Updated
application/jsonEnrollmentidstringcourse_idstringlearnerstring — Resolved learner identifier (employee_id or user_email). Set automatically on enroll.employee_idstringuser_emailstringstatusstringprogress_pctintegerscorenumberenrolled_atstringcompleted_atstringcreatedAtstringupdatedAtstring
404- Not found
POST /api/purple-suite/lms/enrollments/{id}/complete
Mark an enrollment complete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Instance-ID | header | string | yes | |
id | path | string | yes |
Request body
application/json
scorenumber — Final assessment score, if any.
Responses
200- Enrollment completed
application/jsonEnrollmentidstringcourse_idstringlearnerstring — Resolved learner identifier (employee_id or user_email). Set automatically on enroll.employee_idstringuser_emailstringstatusstringprogress_pctintegerscorenumberenrolled_atstringcompleted_atstringcreatedAtstringupdatedAtstring
404- Enrollment not found
422- Enrollment already completed or dropped