Approve or deny a live session registration.

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

Approves (status 1) or denies (status -2) a pending registration for a live session that uses manual approval. For a paid session, an approved registrant must still pay to complete registration.

Endpoint

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

OAuth Scope

TrainerCentral.sessionapi.UPDATECopied!

Headers

tc-orgIdstring(Required)

ID of the academy (orgId).

Example
51517414

Path Parameters

sessionMemberIdstring(Required)

ID of the registrant (sessionMemberId).

Request Body

application/json
sessionMemberJSON Object(Required)

The decision on the registration.

Hide Sub-Attributes
statusinteger(Required)

New registration status. Allowed: 1=Approved, -2=Denied.

Request Example

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

Body Parameters

Approve a registration.

Approve a registration.

Deny a registration.

Copied!
  {
    "sessionMember": {
      "status": 1
    }
  }
                
  {
    "sessionMember": {
      "status": -2
    }
  }
                
▼ Show full

Response Parameters

sessionMemberJSON Object

The registrant after the update.

Hide Sub-Attributes
sessionMemberIdstring

ID of the session member (registration).

emailIdstring

Email address of the member.

namestring

Name of the member.

userIdstring

User ID of the member.

sessionIdstring

ID of the session.

orgIdstring

ID of the academy (orgId).

rolestring

Role in the session. Allowed: 1=Trainer, 2=Co-trainer, 3=Learner, 4=Guest presenter.

idstring

Same as sessionMemberId.

statusstring

Registration status. Allowed: 1=Registered, 0=Invited, -1=Waiting for approval, -2=Denied, -3=Cancelled by learner, -4=Invitation cancelled.

registerstring

true when the learner has registered.

sourcestring

How the member was added. Allowed: 1=Invited, 2=Self registration, 3=CRM, 4=Zapier invite, 5=Zapier registration, 6=Zoho Flow invite, 7=Zoho Flow registration.

paymentStatusstring

Allowed: 0=Yet to pay, 1=Paid, 2=Failed, 3=Cancelled, 4=Refunded, 5=Unpaid (inactive), 6=Unpaid, -2=Pending.

orgMemberIdstring

Academy member ID.

createdTimestring

Added time in epoch milliseconds.

lastUpdatedTimestring

Last updated time in epoch milliseconds.

mailStatusstring

Invite mail status. Allowed: 0=Not sent, 1=Sent, 2=Failed.

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 - The sessionMemberId is not in this academy, or the user is not an academy owner or admin, the primary trainer, or a course admin or trainer. Fix the ID or role; do not retry unchanged.

ST_79

INVALID_SESSION - The session of this member does not exist. Pass a sessionMemberId of an existing live session. Do not retry unchanged.

ST_401

SESSION_DELETED - The session of this member was deleted. Do not retry unchanged.

ST_158

REGISTRATION_CLOSED - Registration is closed, for example the occurrence is over or the limit is reached. Reopen registration or raise the limit, then retry.

ST_86

SESSION_MEMBERS_UPDATE_FAILED - The member is a guest presenter, or the update failed. Pass a learner registration; if it still fails, retry later.

Response Example

Response after approving a registration.

200
200
400
500
Copied!
  {
    "sessionMember": {
      "sessionMemberId": "3000000000070",
      "id": "3000000000070",
      "orgId": "51517414",
      "sessionId": "3000000000050",
      "userId": "51456950",
      "name": "Jane Cooper",
      "emailId": "jane.cooper@example.com",
      "role": "3",
      "register": "true",
      "source": "2",
      "status": "1",
      "paymentStatus": "0",
      "createdTime": "1782727600000",
      "lastUpdatedTime": "1782727715513"
    }
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full