Create unit
Creates a new unit within a course. Provide a name, code, and the parent course_id. Optionally set capacity, pricing, and scheduling.
When the Canvas integration is enabled and OAuth authenticated, canvas_mappings may be included on create. Otherwise, requests that include canvas_mappings return 422 with "Canvas integration is not available".
Body
application/json
- Type: array object[]canvas
_mappings Canvas LMS course mappings to set on the new unit. Each entry creates a new mapping; do not include
id. Requires the Canvas integration to be enabled and OAuth authenticated.
Responses
- 201
Successful response.
- application/json
- application/json
- application/json
Request Example for post/apis/units/units
curl https://ff-business-school.fullfabric.cloud/apis/units/units \
--request POST \
--header 'Content-Type: application/json' \
--header 'FF-Auth: YOUR_SECRET_TOKEN' \
--data '{
"canvas_mappings": [
{
"sis_id": "SIS-NEW",
"canvas_id": "101"
}
]
}'
No Body