Add an occurrence to a live session.

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

Adds one occurrence, or a recurring series, to an existing live session. An occurrence (talkId) is one scheduled run of the live session.

Endpoint

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

OAuth Scope

TrainerCentral.talkapi.CREATECopied!

Headers

tc-orgIdstring(Required)

ID of the academy (orgId).

Example
51517414

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 POST \
  --url https://trainercentral.zoho.com/tc/api/v1/trainer/talks.json \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
  --header 'content-type: application/json' \
  --header 'tc-orgId: 51517414' \
  --data '{"talk":{"sessionId":3000000000040,"name":"December Live Workshop","scheduledTime":1764599400000,"scheduledEndTime":1764603000000}}'

Body Parameters

Add one named occurrence.

Add one named occurrence.

Add weekly occurrences on Tuesday and Thursday.

Copied!
  {
    "talk": {
      "sessionId": 3000000000040,
      "name": "December Live Workshop",
      "scheduledTime": 1764599400000,
      "scheduledEndTime": 1764603000000
    }
  }
                
  {
    "talk": {
      "sessionId": 3000000000040,
      "scheduledTime": 1764685800000,
      "scheduledEndTime": 1767112200000,
      "durationTime": "3600000",
      "recurrence": {
        "recurringType": 2,
        "repeatEvery": 1,
        "weeklyOccurences": [
          {
            "day": 3
          },
          {
            "day": 5
          }
        ]
      }
    }
  }
                
▼ Show full

Response Parameters

talksJSON Array

Occurrences created by this call.

Hide Sub-Attributes
JSON Object
Show 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_102

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

ST_79

INVALID_SESSION - talk.sessionId is not a live session in this academy. Send a valid sessionId. Do not retry unchanged.

ST_401

SESSION_DELETED - The live session is deleted. Do not retry for this session.

ST_406

FEATURE_NOT_AVAILABLE - The academy plan does not include recurring sessions. Upgrade the plan. Do not retry until the plan changes.

ST_100

SESSION_DATE_LIMIT_EXCEED - A time is more than 2 years from now. Send times within the next 2 years. Do not retry unchanged.

ST_91

RECURRING_SESSION_LIMIT_EXCEED - The recurrence generates more than 50 occurrences. Shorten the span or increase repeatEvery. Do not retry unchanged.

ST_183

BREAKOUT_SESSION_ENDED - The breakout of this breakout room session has ended. Do not retry for this session.

Response Example

One occurrence created.

200
200
400
500
Copied!
  {
    "talks": [
      {
        "talkId": "3000000000050",
        "id": "3000000000050",
        "sessionId": "3000000000040",
        "session": "3000000000040",
        "name": "December Live Workshop",
        "orgId": "51517414",
        "owner": "51456901",
        "status": "1",
        "deliveryMode": "3",
        "scheduledTime": "1764599400000",
        "scheduledEndTime": "1764603000000",
        "deletedTime": "-1",
        "registeredCount": "0",
        "totalRevenue": "0.0"
      }
    ]
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full

Rate Limits

Duration1 minute
Threshold20

Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.