Update the settings of 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

Turns before-, during- and after-session settings of a live workshop or live lesson on or off, such as registration, chat, recording and the feedback survey. Only the keys you send are changed.

Endpoint

put https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/sessionSettings/{sessionId}.json

OAuth Scope

TrainerCentral.sessionapi.UPDATECopied!

Headers

tc-orgIdstring(Required)

ID of the academy (orgId).

Example
51517414

Path Parameters

sessionIdstring(Required)

ID of the live session (sessionId): a live workshop or a live lesson.

Request Body

application/json
sessionSettingJSON Object(Required)

Live session settings to change; send only the keys to change.

Hide Sub-Attributes
enableClientLoginboolean(Optional)

Before session. true lets only signed-in users join.

registrationRequiredboolean(Optional)

Before session. true makes attendees register before they can join. Cannot be false for a session with a ticket.

enablePrivateQuestionsboolean(Optional)

During session. true turns on private questions, seen only by trainers.

enableChatboolean(Optional)

During session. true turns on chat for attendees.

hidePresentedSlidesboolean(Optional)

During session. true hides already presented slides from attendees.

enableQuestionboolean(Optional)

During session. true lets attendees ask questions.

waitingRoomEnabledboolean(Optional)

During session. true holds attendees in a waiting room until admitted.

startRecordingOnSessionStartboolean(Optional)

During session. true starts recording when the occurrence starts.

reactionsRestrictionTypeinteger(Optional)

During session. Attendee reactions. Allowed: 0=Reactions allowed, 1=All reactions disabled.

enableUnmuteAllboolean(Optional)

During session. true lets all attendees turn on their microphone.

enableCameraToAllboolean(Optional)

During session. true lets all attendees turn on their camera.

displayActiveUsersInViewboolean(Optional)

During session. true shows active attendees in the video layout.

showEvaluationOnSessionExitboolean(Optional)

After session. true shows the feedback survey on exit.

enableDiscussionboolean(Optional)

Live lessons of a course only. true turns on the lesson discussion.

Request Example

cURL
cURL
Java
Python
Deluge
Copied!
curl --request PUT \
  --url https://trainercentral.zoho.com/tc/api/v1/trainer/sessionSettings/{sessionId}.json \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
  --header 'content-type: application/json' \
  --header 'tc-orgId: 51517414' \
  --data '{"sessionSetting":{"enableClientLogin":true}}'

Body Parameters

Allow only signed-in users.

Allow only signed-in users.

Require registration.

Set during- and after-session options.

Copied!
  {
    "sessionSetting": {
      "enableClientLogin": true
    }
  }
                
  {
    "sessionSetting": {
      "registrationRequired": true
    }
  }
                
  {
    "sessionSetting": {
      "enablePrivateQuestions": true,
      "enableChat": true,
      "hidePresentedSlides": true,
      "enableQuestion": true,
      "waitingRoomEnabled": true,
      "startRecordingOnSessionStart": true,
      "reactionsRestrictionType": 1,
      "enableUnmuteAll": true,
      "enableCameraToAll": true,
      "displayActiveUsersInView": true,
      "showEvaluationOnSessionExit": true
    }
  }
                
▼ Show full

Response Parameters

sessionSettingJSON Object

All settings of the live session after the update.

Hide Sub-Attributes
idstring

ID of the live session (sessionId).

sessionIdstring

ID of the live session (sessionId).

enableClientLoginstring

Before session. true when only signed-in users can join.

registrationRequiredstring

Before session. true when attendees must register before they can join.

enableChatstring

During session. true when chat is turned on.

enableQuestionstring

During session. true when attendees can ask questions.

enablePrivateQuestionsstring

During session. true when private questions are turned on.

hidePresentedSlidesstring

During session. true when slides already presented are hidden from attendees.

waitingRoomEnabledstring

During session. true when attendees wait in a waiting room until admitted.

startRecordingOnSessionStartstring

During session. true when recording starts automatically with the occurrence.

reactionsRestrictionTypestring

During session. Attendee reactions. Allowed: 0=Reactions allowed, 1=All reactions disabled.

enableUnmuteAllstring

During session. true when all attendees can turn on their microphone.

enableCameraToAllstring

During session. true when all attendees can turn on their camera.

displayActiveUsersInViewstring

During session. true when active attendees are shown in the video layout.

showEvaluationOnSessionExitstring

After session. true when the feedback survey is shown on exit.

enableDiscussionstring

true when the discussion of a live lesson is turned on.

recurringTypestring

Schedule pattern. Allowed: 0=One-time, 1=Daily, 2=Weekly, 3=Monthly.

registrationSettingJSON Object

Registration settings of the session. Returned only when registration is turned on.

Hide Sub-Attributes
idstring

ID of the live session (sessionId).

restrictionTypeinteger

Approval of registrations. Allowed: 0=Automatic, 1=Manual (a trainer approves or denies).

redirectionUrlstring

Page shown to registrants after registering. Empty when not set.

occurrenceLimitinteger

Maximum occurrences one learner can register for. 0=No limit.

allowInvitedOnlyboolean

true when only invited people can register.

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_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 trainer, or the plan does not include session settings. Use one of these roles or upgrade the plan; do not retry unchanged.

ST_406

FEATURE_NOT_AVAILABLE - A setting sent is not on the academy plan (the error names it), or live session discussion is not enabled. Upgrade the plan or leave the key out. Do not retry unchanged.

ST_572

UNMODIFIABLE_REGISTRATION_STATUS - Registration cannot be turned off for a session with a ticket. Remove the ticket or keep registrationRequired true. Do not retry unchanged.

ST_591

PERMISSION_DENIED_FOR_THE_SHOWTIME_MODULE - The discussion group could not be created. Retry later.

ST_65

ERROR_WHILE_CREATING_SETTINGS_FOR_TALK - The settings could not be saved, for example enableDiscussion was sent for a live workshop outside a course. Leave it out; if it still fails, retry later.

Response Example

Response after turning on sign-in and registration.

200
200
400
500
Copied!
  {
    "sessionSetting": {
      "id": "3000000000050",
      "sessionId": "3000000000050",
      "enableClientLogin": "true",
      "registrationRequired": "true",
      "enableChat": "true",
      "enableQuestion": "true",
      "waitingRoomEnabled": "false",
      "reactionsRestrictionType": "0",
      "recurringType": "0"
    },
    "registrationSetting": {
      "id": "3000000000050",
      "restrictionType": "0",
      "redirectionUrl": "",
      "occurrenceLimit": "0",
      "allowInvitedOnly": "false"
    }
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full