Update 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

Updates the name or schedule of one occurrence (talkId) of a live session. Registrants are emailed when the time changes.

Endpoint

put https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/talks/{talkId}.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 Body

application/json
talkJSON Object(Required)

The occurrence to create, or the changes to apply on update.

Hide Sub-Attributes
sessionIdlong(Optional)

Create only. ID of the live session (sessionId) to add the occurrence to.

namestring(Optional)

Name of the occurrence. Defaults to the live session name. Max 255 characters.

scheduledTimelong(Optional)

Start time in epoch milliseconds, within 2 years from now. Required on create; with recurrence, the start of the first occurrence.

scheduledEndTimelong(Optional)

End time in epoch milliseconds. With recurrence, the end of the series.

durationTimestring(Optional)

Length of each recurring occurrence in milliseconds, as a string (for example "3600000"). Required with recurrence.

recurrenceJSON Object(Optional)

Create only. Repeat pattern for a series of occurrences (max 50). Omit for one occurrence.

Show Sub-Attributes
recurringTypeinteger(Optional)

How often it repeats. Allowed: 1=Daily, 2=Weekly, 3=Monthly.

repeatEveryinteger(Optional)

Interval between occurrences. Daily 1-15, weekly 1-6, monthly 1-6.

weeklyOccurencesJSON Array(Optional)

Weekdays to repeat on. Required when recurringType is 2.

Show Sub-Attributes
JSON Object
Show Sub-Attributes
dayinteger(Optional)

Weekday. Allowed: 1=Sunday, 2=Monday, 3=Tuesday, 4=Wednesday, 5=Thursday, 6=Friday, 7=Saturday.

startTimestring(Optional)

Start time as HH:mm in the session time zone.

durationstring(Optional)

Length of the occurrence in milliseconds.

monthlyOccurencesJSON Object(Optional)

Day of the month to repeat on. Required when recurringType is 3.

Show Sub-Attributes
dateOfMonthinteger(Optional)

Day of the month (1-31). Or send nthWeek with monthlyRecurringWeekDay.

nthWeekinteger(Optional)

Week of the month (1-4).

monthlyRecurringWeekDayinteger(Optional)

Weekday. Allowed: 1=Sunday … 7=Saturday.

statusinteger(Optional)

Update only. Send 1 to reschedule a cancelled occurrence. Allowed: 1=Reschedule a cancelled occurrence.

isCancelledboolean(Optional)

Update only. If present, the occurrence is cancelled and other keys are ignored.

Request Example

cURL
cURL
Java
Python
Deluge
Copied!
curl --request PUT \
  --url https://trainercentral.zoho.com/tc/api/v1/trainer/talks/{talkId}.json \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
  --header 'content-type: application/json' \
  --header 'tc-orgId: 51517414' \
  --data '{"talk":{"scheduledTime":1785514500000,"scheduledEndTime":1785518100000}}'

Body Parameters

Reschedule an occurrence.

Reschedule an occurrence.

Rename an occurrence.

Reschedule a cancelled occurrence.

Copied!
  {
    "talk": {
      "scheduledTime": 1785514500000,
      "scheduledEndTime": 1785518100000
    }
  }
                
  {
    "talk": {
      "name": "Python Q&A - Week 2"
    }
  }
                
  {
    "talk": {
      "status": 1,
      "scheduledTime": 1785514500000,
      "scheduledEndTime": 1785518100000
    }
  }
                
▼ Show full

Response Parameters

talkJSON Object

The updated occurrence. null when no updatable key was sent.

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 changed. Do not retry for this occurrence.

ST_83

EDIT_SESSION_FAILED - The occurrence could not be updated, for example the body is malformed or isCancelled was sent for a completed or cancelled occurrence. Do not retry unchanged.

Response Example

Occurrence moved to a new time.

200
200
400
500
Copied!
  {
    "talk": {
      "talkId": "3000000000050",
      "id": "3000000000050",
      "sessionId": "3000000000040",
      "session": "3000000000040",
      "name": "December Live Workshop",
      "orgId": "51517414",
      "status": "1",
      "deliveryMode": "3",
      "scheduledTime": "1785514500000",
      "scheduledEndTime": "1785518100000"
    }
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full