DevelopersAPI reference
List assignments
GET
/assignmentsLists one record per assignment, so a person can hold a direct and a learning path assignment for the same material. Unassigned records appear only with include_unassigned=true.
Authorization
apiKey assignments:readAuthorizationBearer <token>
An organisation API key, sent as Authorization: Bearer enl_…. Create keys in Settings, API Keys.
In: header
Scope: assignments:read
Query Parameters
limit?integer
Range
1 <= value <= 200Default
50cursor?string
The next_cursor from the previous page.
user_id?string
Format
uuidmaterial_id?string
Format
uuidlearning_path_id?string
Format
uuidorigin?string
Value in
- "direct"
- "learning_path"
status?string
Never matches anonymised surveys, whose status is null.
Value in
- "outstanding"
- "completed"
- "overdue"
include_unassigned?string
Default
"false"Value in
- "true"
- "false"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/assignments"{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5", "material_id": "fba2a54e-bc4a-4e2a-8ad4-84dcfe66dea1", "material_type": "course", "origin": "direct", "learning_path_id": "5c3b73d2-4376-40f6-99e3-f25504b37bc7", "schedule": { "type": "none" }, "status": "outstanding", "due_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z", "previous_period_missed": true, "assigned_at": "2019-08-24T14:15:22Z", "assigned_by_id": "22930149-1fab-4145-94b5-af2031b8de65", "unassigned_at": "2019-08-24T14:15:22Z" } ], "next_cursor": "string"}