DevelopersAPI reference
Assign a learning path
POST
/learning-paths/{id}/assignmentsAssigns a learning path to up to 500 people, which assigns its first step. Unlike assigning a material, it’s all or nothing: if anyone isn’t an active member or already holds the path, nobody is assigned and the response lists them.
Authorization
apiKey learning_paths:writeAuthorizationBearer <token>
An organisation API key, sent as Authorization: Bearer enl_…. Create keys in Settings, API Keys.
In: header
Scope: learning_paths:write
Path Parameters
id*string
Format
uuidHeader Parameters
Idempotency-Key*string
A unique value per change, up to 255 characters. Retrying with the same key returns the first response for 24 hours.
Length
length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/learning-paths/497f6eca-6276-4993-bfeb-53cbbbba6f08/assignments" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{ "user_ids": [ "2d98503d-4ab4-41bd-8fc6-78cc006fd2db" ] }'{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "learning_path_id": "5c3b73d2-4376-40f6-99e3-f25504b37bc7", "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5", "assigned_by_id": "22930149-1fab-4145-94b5-af2031b8de65", "status": "in_progress", "starts_at": "2019-08-24T14:15:22Z", "due_at": "2019-08-24T14:15:22Z", "assigned_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z" } ]}