Move a lesson within or across chapters.
Moves a lesson to a new position (sessionIndex) in its chapter, or to another chapter of the course (sectionId). The response lists all lessons of the course with their new positions.
Endpoint
put https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/sessions/{sessionId}.json
OAuth Scope
Headers
ID of the academy (orgId).
Path Parameters
ID of the course lesson to move (sessionId).
Request Body
application/jsonLesson values to change; omitted keys keep their values.
Hide Sub-Attributes
New name of the lesson. Max 255 characters; cannot be empty.
Description of the lesson. Supports rich text. An empty string removes it.
true makes learners complete this lesson before later lessons.
true makes the lesson a draft hidden from learners; false publishes it.
Reorder Course Lesson only. New zero-based position of the lesson in its chapter.
Reorder Course Lesson only. ID of the chapter (section) to move the lesson to.
curl --request PUT \
--url https://trainercentral.zoho.com/tc/api/v1/trainer/sessions/{sessionId}.json \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/json' \
--header 'tc-orgId: 51517414' \
--data '{"session":{"sessionIndex":2}}' {
"session": {
"sessionIndex": 2
}
}
{
"session": {
"sectionId": 3000000000027,
"sessionIndex": 0
}
}
Response Parameters
The moved lesson with its new sessionIndex.
Hide Sub-Attributes
ID of the lesson (sessionId).
Same as sessionId.
Name of the lesson.
Description of the lesson. Supports rich text.
Lesson type. Allowed: 3=Live session, 4=On-demand lesson, 7=Assignment.
Zero-based position of the lesson in its chapter.
ID of the chapter (section) that holds the lesson.
ID of the course the lesson belongs to.
ID of the academy (orgId).
true when the lesson is a draft, hidden from learners.
true when learners must complete this lesson before later lessons.
Publish status of the lesson. Allowed: 0=Unpublished, 1=Published.
Live lessons only. Start time in epoch milliseconds.
Live lessons only. End time in epoch milliseconds.
Live lessons only. IANA time zone, for example Asia/Kolkata.
Schedule type. Allowed: 0=One-time, 1=Recurring. Always 0 for lessons.
Visibility. Allowed: 0=Default, 1=Featured.
User ID of the trainer who created the lesson.
Same as courseId.
Creation time in epoch milliseconds.
All lessons of the course with their positions after the move.
Hide Sub-Attributes
Show Sub-Attributes
ID of the lesson (sessionId).
Same as sessionId.
Name of the lesson.
Description of the lesson. Supports rich text.
Lesson type. Allowed: 3=Live session, 4=On-demand lesson, 7=Assignment.
Zero-based position of the lesson in its chapter.
ID of the chapter (section) that holds the lesson.
ID of the course the lesson belongs to.
ID of the academy (orgId).
true when the lesson is a draft, hidden from learners.
true when learners must complete this lesson before later lessons.
Publish status of the lesson. Allowed: 0=Unpublished, 1=Published.
Live lessons only. Start time in epoch milliseconds.
Live lessons only. End time in epoch milliseconds.
Live lessons only. IANA time zone, for example Asia/Kolkata.
Schedule type. Allowed: 0=One-time, 1=Recurring. Always 0 for lessons.
Visibility. Allowed: 0=Default, 1=Featured.
User ID of the trainer who created the lesson.
Same as courseId.
Creation time in epoch milliseconds.
Error details.
Hide Sub-Attributes
Deprecated numeric error code (for example ST_202). Prefer codeStr; omitted from doc samples.
Error code name (ShowtimeErrorCode / err_code_str), for example MISSING_PARAMETER.
Error message.
Possible Error Codes
| HTTP Code | Error Code | Description |
|---|---|---|
| 500 | ST_79 | INVALID_SESSION - The sessionId does not match a session in this academy. Pass a valid sessionId. Do not retry unchanged. |
| ST_401 | SESSION_DELETED - The session was deleted. Use a session that is not deleted. Do not retry unchanged. | |
| ST_102 | UNAUTHORISED_ACCESS - The user is not an academy owner or admin, or an admin or trainer of the course. Call with one of these roles; do not retry unchanged. | |
| ST_83 | EDIT_SESSION_FAILED - sessionIndex is outside the target chapter, or sectionId is not a chapter of this course. Send a valid sessionIndex and sectionId. Do not retry unchanged. |
{
"session": {
"sessionId": "3000000000040",
"id": "3000000000040",
"name": "Python Basics - Variables",
"deliveryMode": "4",
"scheduleType": "0",
"sessionIndex": "1",
"publishStatus": "0",
"kind": "0",
"orgId": "51517414",
"scheduledBy": "51456901",
"createdTime": "1782727568966"
},
"sessions": [
{
"sessionId": "3000000000041",
"id": "3000000000041",
"name": "Course Introduction",
"deliveryMode": "4",
"sessionIndex": "0",
"orgId": "51517414"
},
{
"sessionId": "3000000000040",
"id": "3000000000040",
"name": "Python Basics - Variables",
"deliveryMode": "4",
"sessionIndex": "1",
"orgId": "51517414"
}
]
}
{
"error": {
"code": "string",
"codeStr": "string",
"message": "string"
}
}
500 Request failed; see the error code.© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.