Create chapter API

Create chapter API


Description: To create a chapter under a course in academy

Request URL: /api/v4/<orgId>/sections.json (How do I get my orgId?)

Method: POST

OAuth scope: TrainerCentral.sectionapi.CREATE


Parameters:

  1. {
  2. "section":{
  3.   "courseId": "<courseId>",
  4. "name": "<section name>"
  5.           }
  6. }


Parameters - description:


1. courseId - The Id of the course under which the chapter has to be created. 
2. name: The name of the chapter. 

 

Sample Response:

  1. Section:
  2. {
  3. "section":
  4. {
  5. "sectionName”:<SectionName>,
  6. "sectionIndex":"0",
  7. "lastUpdatedBy”:<userId>,
  8. "createdBy”:<userId>,
  9. "createdTime":"1646207388070",
  10. "lastUpdatedTime":"1646207388070",
  11. "id”:<sectionId>,
  12. "sectionId”:<sectionId>,
  13. "status":"0"
  14. }
  15. }
  16.