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
The curriculum ID, as the last URL segment.
Body
JSONStringCurriculum name. No
< or >.Course category ID.
ID of the subject tag to link the curriculum to.
descriptionstring
Up to 500 characters. Leaving it out clears the description.
privacy_typestring
public or private. Leaving it out sets private.course_typestring
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.
is_time_restrictedinteger
1 turns on time restriction. Leaving it out sets 0.Multiplier used with time restriction. Default 1.
remove_imageinteger
1 removes the cover image.Response
codeinteger
Example:
200messagestring
Example:
Course Updatedcourseobject
Show child attributesHide child attributes
course.course_idinteger
Example:
2083course.namestring
Example:
Course Update 1course.descriptionstring
Example:
Course Details Description Updatecourse.imagenull
course.categoryinteger
Example:
3course.course_typestring
Example:
customcourse.statusstring
Example:
livecourse.tutor_idinteger
Example:
1course.privacy_typestring
Example:
publiccourse.is_time_restrictedinteger
Example:
0Example:
1.00Notes: 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.