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.  

 


    • Related Articles

    • List of all TrainerCentral APIs

      Getting Started Get Oauth token API Course APIs Create chapter API Edit chapter API Create course API Edit course API Create lesson API Edit lesson API Create assignment API Delete lesson/live workshop/assignment API Delete chapter API Delete course ...
    • Create assignment API

      Description: This API helps you create an assignment in a course. Request URL: /api/v4/<orgId>/sessions.json (How do I get my orgId?) Method: POST OAuth scope: TrainerCentral.sessionapi.CREATE Parameters: { "session":{ "name":"<assignment name>", ...
    • Create lesson API

      Description: To create a lesson under a course in an academy. Request URL: /api/v4/<orgId>/sessions.json (How do I get my orgId?) Method: POST OAuth scope: TrainerCentral.sessionapi.CREATE Parameters for creating an on-demand lesson { "session":{ ...
    • Create a Group

      The Groups feature helps you create a group with a specific set of learners to monitor their course progress and certifications. The admin can assign a moderator for each group, and the moderator will be able to monitor the learners' progress. Let's ...
    • Edit chapter API

      Description: To edit a chapter name or reorder a chapter inside a course. Request URL: <domain>/api/v4/<orgId>/course/<courseId>/sections/<sectionId>.json Method: PUT OAuth Scope: TrainerCentral.sectionapi.UPDATE Parameters: Not applicable Request ...