Docs
DevelopersAPI reference

Get an assignment

GET/assignments/{id}

Gets an assignment by id, including unassigned ones.

Authorization

apiKey assignments:read
AuthorizationBearer <token>

An organisation API key, sent as Authorization: Bearer enl_…. Create keys in Settings, API Keys.

In: header

Scope: assignments:read

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/assignments/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "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"}