Update Course API
This API is used for updating courses in LMS.
Request URL:
https://people.zoho.com/api/v1/courses/<courseId>?courseData={"[name"](https://people.zoho.com/api/v1/courses?courseData={%22name%22) : <name>, "type" : <type>, "description" : <description>, "aboutCourse" : <aboutCourse>, "duration" : <duration>, "durationUnit" : <durationUnit>, "courseCode" : <courseCode>, "courseAdmins" : <courseAdmins>, "categories" : <categories>, "permissionSettings" : <permissionSettings>}
Scope:
ZOHOPEOPLE.training.ALL
OR
ZOHOPEOPLE.training.UPDATE
Possible Operation Types:
ALL - Complete access to data
UPDATE - Only to update data
Method:
PATCH
Request Parameters:
Parameters | Values Allowed | Default Value | Description |
*courseData | <parameters in JSON Object> | JSON Input |
Parameters | Values Allowed | Default Value | Description |
*name | <Course name> | <Mandatory> | Specify the Course name |
*type | <1> | <2> | <3> | <Mandatory> | Specify the Course type 1 - Self Paced 2 - Blended Learning 3 - E-Matrerial |
description | <Description> | - | Specify the description |
aboutCourse | <about course> | - | Specify what is covered in the course along with the details on the content of the course |
duration | <Duration in integer format> | - | Specify the course duration |
durationUnit | <minute> | <hour> | <day> | - | Specify the course code |
courseCode | <Course Code> | - | Specify the course code |
courseAdmins | <Erec Nos> | - | Specify the course admins |
categories | <category Ids> | - | Specify the category Ids |
permissionSettings | <permissionSettings> | - | JSON Input |
References
Sample object for "permissionSettings" key | {"whoCanEnroll" : ["admin","learner"], "whoCanUnenroll" : ["admin","learner"], "whenAnEntityIsConsideredAsCompleted" : 2, "whenACourseIsConsideredAsCompleted" : 2, "whenAModuleIsConsideredAsCompleted" : 2} |
Possible Values
whoCanEnroll / whoCanUnenroll:
Value | Description |
---|---|
admin | Admin user |
courseAdmin | Course administrator |
manager | Manager of the learner |
learner | The learner themselves |
whenAnEntityIsConsideredAsCompleted:
Value | Description |
---|---|
1 | When an entity is marked as completed by the learner |
2 | When an entity is opened or accessed |
whenACourseIsConsideredAsCompleted:
Value | Description |
---|---|
1 | When the learner marks as completed |
2 | When all mandatory entities are completed |
3 | When course admin/trainer marks as complete |
4 | Based on date |
whenAModuleIsConsideredAsCompleted:
Value | Description |
---|---|
1 | When the learner marks as completed |
2 | When all mandatory entities are completed |
Error Codes and Descriptions
Status Codes | Description |
---|---|
400 | Invalid parameter value/input parameter missing |
403 | Sorry! You are not authorized to do this operation |
404 | Not found |
422 | Maximum limit exceeded |
500 | Sorry! Server error occured |
View complete list of LMS API error codes
Threshold Limit: 30 requests | Lock period: 5 minutes
Threshold Limit - Number of API calls allowed within a minute.
Lock Period - Wait time before consecutive API requests.
Request
Header
Copied
Response
Copied
Show full
Show less