Cancel a live session.
Cancels a live workshop or live lesson by setting all its occurrences (talkId) to status 7 (Cancelled). The session record is kept; it cannot be cancelled while an occurrence is live.
Endpoint
post https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/sessions/{sessionId}/cancel.json
OAuth Scope
Headers
ID of the academy (orgId).
Path Parameters
ID of the live session (sessionId): a live workshop or a live lesson.
curl --request POST \
--url https://trainercentral.zoho.com/tc/api/v1/trainer/sessions/{sessionId}/cancel.json \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'tc-orgId: 51517414'Response Parameters
Occurrences of the session, each with status 7 (Cancelled).
Hide Sub-Attributes
Show Sub-Attributes
ID of the occurrence (talkId).
Name of the occurrence.
ID of the live session.
ID of the academy (orgId).
Status of the occurrence. Allowed: 0=Yet to start, 1=Scheduled, 2=Projected, 3=Started, 4=Suspended, 5=Completed, 6=Orphaned, 7=Cancelled.
Number of registered learners.
Start time in epoch milliseconds.
End time in epoch milliseconds.
Delivery mode. Allowed: 3=Live session, 4=On-demand, 7=Assignment.
Same as talkId.
User ID of the trainer who owns the occurrence.
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, the primary trainer or a course admin, or an occurrence is live now. Use one of these roles, or retry after the live occurrence ends. | |
| ST_83 | EDIT_SESSION_FAILED - The session is an on-demand lesson, which cannot be cancelled, or cancelling failed. Pass a live session; if it still fails, retry later. |
{
"talks": [
{
"talkId": "3000000000052",
"id": "3000000000052",
"sessionId": "3000000000050",
"name": "Python Live Q&A",
"status": "7",
"deliveryMode": "3",
"scheduledTime": "1800419400000",
"scheduledEndTime": "1800423000000",
"timezone": "Asia/Kolkata",
"orgId": "51517414",
"owner": "51456901"
}
]
}
{
"error": {
"code": "string",
"codeStr": "string",
"message": "string"
}
}
500 Request failed; see the error code.© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.