Courses
Course Modules
Attach and detach modules from a course, and define their order and requirements.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Attach and detach modules from a course, and define their order and requirements.
GET /courses/{course_uuid}/attach/modules
curl "https://api.dokstamp.com/courses/c3d4e5f6-a7b8-9012-cdef-123456789012/attach/modules" \
-H "Authorization: Bearer {TOKEN}" \
-H "Accept: application/json" \
-H "X-Tenant: {TENANT}"
POST /courses/{course_uuid}/attach/modules
| Parameter | Type | Required | Description |
|---|---|---|---|
modules | array | Yes | Array of module attachment objects |
modules[].uuid | string | Yes | Module UUID |
modules[].order | integer | No | Position in the course curriculum |
modules[].is_required | boolean | No | Override the module’s default is_required |
modules[].workload | integer | No | Override the module’s default workload for this course |
modules[].course_module_group_uuid | string | No | Assign to a module group |
curl -X POST "https://api.dokstamp.com/courses/c3d4e5f6-a7b8-9012-cdef-123456789012/attach/modules" \
-H "Authorization: Bearer {TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Tenant: {TENANT}" \
-d '{
"modules": [
{
"uuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"order": 1,
"is_required": true,
"workload": 80
},
{
"uuid": "c3d4e5f6-a7b8-9012-cdef-123456789013",
"order": 2,
"is_required": true,
"workload": 60
}
]
}'
DELETE /courses/{course_uuid}/detach/modules
| Parameter | Type | Required | Description |
|---|---|---|---|
modules | array | Yes | Array of module UUIDs to detach |
{ "modules": ["b2c3d4e5-f6a7-8901-bcde-f12345678901"] }