Edit lesson API

Edit lesson API

Description: To edit a lesson inside a course.

Request URL: <domain>/api/v4/<orgId>/sessions/<sessionId>.json
Method: PUT
OAuth Scope: TrainerCentral.sessionapi.UPDATE
Parameters: NA

Request Body: 
  1. {
  2.   "session": {
  3.      "name":"<lesson name>",
  4.      "description": "<lesson description>",
  5.      "sectionId":"<Iesson ID>", [Needed only when the lesson order needs to be updated]
  6.      "sessionIndex":<lesson index> [Indexing starts from 0]
  7.   }
  8. }

Sample Request:
https://zylkeracademy.trainercentral.com/api/v4/700000804/sessions/3000072000002000004.json

Sample Request Body:
  1. {
  2.     "session":{
  3.         "name":"Elements of effective communication",
  4.         "description":"The important attributes we need",
  5.         "sectionId":"3279259000000592062",
  6.         "sessionIndex":1
  7.     }
  8. }

Also read:  
    • 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 ...
    • 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 ...
    • Edit course API

      Description: To edit a course in the academy Request URL: <domain>/api/v4/<orgId>/courses/<courseId>.json Method: PUT OAuth Scope: TrainerCentral.courseapi.UPDATE Parameters: Not applicable Request Body:  {   "course":{        "courseName":"<course ...
    • 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":{ ...
    • Delete lesson/live workshop/assignment API

      Description: To delete a lesson or live workshop or assignment in a course. Request URL: <domain>/api/v4/<orgId>/sessions/<sessionId>.json [where <sessionId> refers to lesson ID or live workshop ID or assignment ID] Method: DELETE OAuth Scope: ...