Skip to main content
POST
Assign a pensum

Authorizations

Authorization
string
header
required

Company API key. The header value must be Api-Key <token>, e.g. Authorization: Api-Key AbCd1234.xxxxxxxx.

Path Parameters

user_id
integer
required

hackU user id, as returned by POST /clients/users/ (user_pk) or GET /clients/users/ (id).

Body

application/json
pensum_id
integer
required
is_active
boolean
default:true

Make this the user's active pensum and course.

Response

Pensum assigned.

When the pensum has no courses the body has assigned_route_id (null) and no assigned_module_name.

success
boolean
message
string
pensum_user_id
integer
assigned_route_name
string | null

Null when every course is already completed.

assigned_module_name
string | null
assigned_route_id
null