Update the registration 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

Updates how registrations for a live session are approved, the page shown after registering, the per-learner occurrence limit and invite-only registration. Only the keys you send are changed.

Endpoint

put https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/registrationSettings/{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
registrationSettingJSON Object(Required)

Registration settings to change; send only the keys to change.

Hide Sub-Attributes
restrictionTypeinteger(Optional)

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

redirectionUrlstring(Optional)

Page registrants are sent to after registering, as an http or https URL.

removeRedirectionUrlboolean(Optional)

true removes the redirect URL.

allowInvitedOnlyboolean(Optional)

true lets only invited people register.

occurrenceLimitinteger(Optional)

Maximum occurrences one learner can register for, when registration is per occurrence. 0=No limit.

Request Example

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

Body Parameters

Approve every registration manually.

Approve every registration manually.

Set a redirect URL.

Remove the redirect URL.

Invite only, at most 3 occurrences per learner.

Copied!
  {
    "registrationSetting": {
      "restrictionType": 1
    }
  }
                
  {
    "registrationSetting": {
      "redirectionUrl": "https://www.example.com/thank-you"
    }
  }
                
  {
    "registrationSetting": {
      "removeRedirectionUrl": true
    }
  }
                
  {
    "registrationSetting": {
      "allowInvitedOnly": true,
      "occurrenceLimit": 3
    }
  }
                
▼ Show full

Response Parameters

registrationSettingJSON Object

All registration settings of the session after the update.

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

Response Example

Response after switching to manual approval.

200
200
400
500
Copied!
  {
    "registrationSetting": {
      "id": "3000000000050",
      "restrictionType": "1",
      "redirectionUrl": "https://www.example.com/thank-you",
      "occurrenceLimit": "0",
      "allowInvitedOnly": "false"
    }
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full