Docs home

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
section_idintegerrequired
ID of the section, e.g. tutor/sections/6174.

Request body: form-data with one field, JSONString, containing this JSON:

BodyJSONString
section_namestringrequired
New name. Cannot contain < or >.
course_idintegerRecommended
ID of the course module the section belongs to. Needed for the duplicate-name check and for in_curriculum.
New description. Cleared if left out.
in_curriculumintegerSend with course_id
1 published, 0 draft (hidden from learners).
1 makes learners finish this section first. Reset to 0 if left out.
Response200application/json
codeinteger
Example: 200
messagestring
Example: Section Updated
sectionobject
Show child attributesHide child attributes
Example: Introduction Update name
Example: Course Introudction update
Example: 6174
Example: 2083

Notes: 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.

Updated yesterday

Ask AI