Cancel one live session occurrence.

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Cancels one occurrence (talkId) of a live session; its status becomes 7 (Cancelled) and registrants are emailed. Other occurrences are not changed.

Endpoint

post https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/talks/{talkId}/cancel.json

OAuth Scope

TrainerCentral.talkapi.UPDATECopied!

Headers

tc-orgIdstring(Required)

ID of the academy (orgId).

Example
51517414

Path Parameters

talkIdstring(Required)

ID of the occurrence (talkId).

Request Example

cURL
cURL
Java
Python
Deluge
Copied!
curl --request POST \
  --url https://trainercentral.zoho.com/tc/api/v1/trainer/talks/{talkId}/cancel.json \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
  --header 'tc-orgId: 51517414'

Response Parameters

talkJSON Object

The cancelled occurrence (status 7).

Hide Sub-Attributes
talkIdstring

ID of the occurrence (talkId).

idstring

Same as talkId.

sessionIdstring

ID of the live session (sessionId).

sessionstring

Same as sessionId.

namestring

Name of the occurrence. null when it uses the live session name.

orgIdstring

ID of the academy (orgId).

ownerstring

User ID of the trainer who scheduled the occurrence.

statusstring

Status of the occurrence. Allowed: 0=Yet to start, 1=Scheduled, 2=Projected (room open), 3=Live, 4=Suspended, 5=Completed, 6=Orphaned, 7=Cancelled.

deliveryModestring

Delivery mode. Allowed: 3=Live session, 4=On-demand (recorded), 7=Assignment.

scheduledTimestring

Scheduled start time in epoch milliseconds.

scheduledEndTimestring

Scheduled end time in epoch milliseconds.

startTimestring

Actual start time in epoch milliseconds.

endTimestring

Actual end time in epoch milliseconds.

timeElapsedstring

Presented duration in milliseconds.

deletedTimestring

Deletion time in epoch milliseconds; -1 when not deleted.

collaborationIdstring

Internal ID for live updates.

mappedTalkIdstring

ID of the published recording of this occurrence.

versionstring

Internal record version.

topicstring

Topic of the occurrence.

resourceIdstring

ID of the linked presentation resource.

broadcastIdstring

Broadcast ID of an online live occurrence.

registeredCountstring

Number of registered learners, per occurrence or for the whole live session.

totalRevenuestring

Ticket revenue in the academy currency.

joinURLstring

URL learners use to register and join.

currentUserIdstring

User ID of the caller.

conductedPollsCountstring

Number of polls run in the occurrence.

streamingUsersCountstring

Number of users connected now (live occurrences only).

isCancelledboolean

false when a cancelled occurrence was rescheduled.

errorJSON Object

Error details.

Hide Sub-Attributes
codestring

Deprecated numeric error code (for example ST_202). Prefer codeStr; omitted from doc samples.

codeStrstring

Error code name (ShowtimeErrorCode / err_code_str), for example MISSING_PARAMETER.

messagestring

Error message.

Possible Error Codes

HTTP CodeError CodeDescription
500ST_105

INVALID_TALK - talkId is not an occurrence in this academy. Send a valid talkId. Do not retry unchanged.

ST_102

UNAUTHORISED_ACCESS - The user is not an academy admin or the primary trainer of this live session. Do not retry unchanged.

ST_183

BREAKOUT_SESSION_ENDED - The breakout of this occurrence has ended, so it cannot be cancelled. Do not retry for this occurrence.

ST_83

EDIT_SESSION_FAILED - The occurrence is already completed, orphaned or cancelled (status 5, 6 or 7). Do not retry unchanged.

Response Example

Cancel a scheduled occurrence.

200
200
400
500
Copied!
  {
    "talk": {
      "talkId": "3000000000050",
      "id": "3000000000050",
      "sessionId": "3000000000040",
      "deliveryMode": "3",
      "status": "7",
      "orgId": "51517414",
      "owner": "51456901",
      "scheduledTime": "1764599400000",
      "scheduledEndTime": "1764603000000"
    }
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full