Skip to main content
POST
Set active course and module

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
module_pk
integer
required

Module id; must belong to the route.

route_pk
integer
required

Course (route) id.

pensum_hacku_slug_name
string | null

Pensum slug; the route must belong to it.

Maximum string length: 100

Response

Module set.

result
string
required
Allowed value: "success"