Update Section
Renames a curriculum section, changes its description, and optionally publishes or hides it. Use it to keep a course's structure in sync with your own content.
POST
/tutor/sections/{section_id}Update Section
curl --request POST \
--url 'https://<your-api-host>/nuSource/api/v1/tutor/sections/{section_id}' \
--header 'APIKEY: <your-api-key>' \
--header 'ORGID: <your-org-id>' \
--form 'JSONString={"course_id":"2083","section_name":"Introduction Update name","description":"Course Introudction update","in_curriculum":true,"is_prerequisite":1}'{
"code": 200,
"message": "Section Updated",
"section": {
"section_name": "Introduction Update name",
"description": "Course Introudction update",
"section_id": 6174,
"course_id": "2083"
}
}Access: Institute admins, admins and tutors (for courses they contribute to), plus custom roles that can edit curriculum.
Path parameters
ID of the section, e.g.
tutor/sections/6174.Request body: form-data with one field, JSONString, containing this JSON:
Body
JSONStringNew name. Cannot contain
< or >.ID of the course module the section belongs to. Needed for the duplicate-name check and for
in_curriculum.descriptionstring
New description. Cleared if left out.
1 published, 0 draft (hidden from learners).is_prerequisiteinteger
1 makes learners finish this section first. Reset to 0 if left out.Response
codeinteger
Example:
200messagestring
Example:
Section Updatedsectionobject
Show child attributesHide child attributes
section.section_namestring
Example:
Introduction Update namesection.descriptionstring
Example:
Course Introudction updatesection.section_idinteger
Example:
6174section.course_idstring
Example:
2083Notes: Send every field you want to keep: description and is_prerequisite are reset when missing, and if you send course_id always send in_curriculum too. Errors: "Section with same name already exists" (another section in that course module has the name). Rate limit: 30 requests per minute; going over locks you out for 30 minutes.