Create Section
Creates a section (a chapter or module heading) inside a course module's curriculum. Use it to build a course's structure before adding materials, tests and assignments to each section.
POST
/tutor/sectionsCreate Section
curl --request POST \
--url 'https://<your-api-host>/nuSource/api/v1/tutor/sections' \
--header 'APIKEY: <your-api-key>' \
--header 'ORGID: <your-org-id>' \
--form 'JSONString={"course_id":"2083","section_name":"Introduction - 1","description":"Course Introudction","is_prerequisite":1}'{
"code": 200,
"message": "Section Created",
"section": {
"course_id": "2083",
"section_name": "Introduction - 1",
"description": "Course Introudction",
"section_id": 6175,
"in_curriculum": null,
"resource_type": 1,
"display_index": 6175
}
}Access: Institute admins, admins and tutors, plus custom roles that can edit curriculum. You must be an admin or a tutor of the course.
Request body: form-data with one field, JSONString, containing this JSON:
Body
JSONStringID of the course module (the curriculum, not the course bundle) to add the section to.
Section name. Cannot contain
< or >. Must be unique within the course module unless allow_duplicate is 1.descriptionstring
Section description.
is_prerequisiteinteger
1 makes learners finish this section before the next ones. Default 0.allow_duplicateinteger
1 allows a name that another section in the course module already uses. Default 0.Response
codeinteger
Example:
200messagestring
Example:
Section Createdsectionobject
Show child attributesHide child attributes
section.course_idstring
Example:
2083section.section_namestring
Example:
Introduction - 1section.descriptionstring
Example:
Course IntroudctionNotes: New sections are published (visible in the curriculum) straight away. Errors: "Invalid Course ID" (missing, unknown or another institute's course module), "Section with same name already exists", and a tutor-only error if you are not a tutor of the course. Rate limit: 30 requests per minute; going over locks you out for 30 minutes.