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 Body:
- {
- "section": {
- "name": "<chapter name>",
- "sectionIndex":<chapter index> [This is required only when the lesson order needs to be updated. Indexing starts from 0]
- }
- }
Sample Request:
https://zylkeracademy.trainercentral.com/api/v4/700000804/course/3000094000002000004/sections/3200000000002000012.json
Sample Request Body:
- {
- "section": {
- "name": "Introduction",
- "sectionIndex":0
- }
- }
Also read: