Docs home

Update Curriculum

Updates a curriculum's name, description, category, privacy, image and organizations.

POST/tutor/courses/{course_id}
Update Curriculum
curl --request POST \
  --url 'https://<your-api-host>/nuSource/api/v1/tutor/courses/{course_id}' \
  --header 'APIKEY: <your-api-key>' \
  --header 'ORGID: <your-org-id>' \
  --form 'JSONString={"name":"Course Update 1","description":"Course Details Description Update","category":3,"privacy_type":"public","engage_subject_tag_id":1,"organization_id":[2],"is_time_restricted":0,"time_restriction_multiplier":"1.00"}'
{
  "code": 200,
  "message": "Course Updated",
  "course": {
    "course_id": 2083,
    "name": "Course Update 1",
    "description": "Course Details Description Update",
    "image": null,
    "category": 3,
    "course_type": "custom",
    "status": "live",
    "tutor_id": 1,
    "tutor_name": " Gauravedupanion Kapoor ",
    "privacy_type": "public",
    "is_time_restricted": 0,
    "time_restriction_multiplier": "1.00"
  }
}

Access: Institute admins, plus custom roles that can manage curriculum. Tutors get "Tutor not allowed to add/edit resource inside department.".

Request body: form-data with one field, JSONString, containing this JSON. Optionally add a new cover image as a file field named uploaded_file (JPEG, PNG or GIF, up to 1 MB).

Path parameters
course_idintegerrequired
The curriculum ID, as the last URL segment.
BodyJSONString
namestringrequired
Curriculum name. No < or >.
categoryintegerrequired
Course category ID.
engage_subject_tag_idintegerrequired
ID of the subject tag to link the curriculum to.
Up to 500 characters. Leaving it out clears the description.
public or private. Leaving it out sets private.
custom (default) or template.
organization_idarray of integers
Replaces the organizations the curriculum is available in (among your organizations). Leave it out to keep them.
1 turns on time restriction. Leaving it out sets 0.
Multiplier used with time restriction. Default 1.
1 removes the cover image.
Response200application/json
codeinteger
Example: 200
messagestring
Example: Course Updated
courseobject
Show child attributesHide child attributes
Example: 2083
Example: Course Update 1
Example: Course Details Description Update
Example: 3
Example: custom
Example: live
Example: 1
Creator
Example: Gauravedupanion Kapoor
Example: public
Example: 0

Notes: This is a full update: optional fields you leave out are reset to their defaults, not kept. A curriculum from another institute returns "Invalid course id". Rate limit: 30 requests per 1 minute; going over locks you out for 30 minutes.

Updated yesterday

Ask AI