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:
- {
- "session": {
- "name":"<lesson name>",
- "description": "<lesson description>",
- "sectionId":"<Iesson ID>", [Needed only when the lesson order needs to be updated]
- "sessionIndex":<lesson index> [Indexing starts from 0]
- }
- }
Sample Request:
https://zylkeracademy.trainercentral.com/api/v4/700000804/sessions/3000072000002000004.json
Sample Request Body:
- {
- "session":{
- "name":"Elements of effective communication",
- "description":"The important attributes we need",
- "sectionId":"3279259000000592062",
- "sessionIndex":1
- }
- }
Also read: