Approve or reject an access request.
Approves (status 2) or rejects (status 3) a learner's request to join a private course. An approved learner can then enroll.
Endpoint
put https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/updateCourseAttendee/{courseMemberId}.json
OAuth Scope
Headers
ID of the academy (orgId).
Path Parameters
ID of the access request (courseMembersId).
Request Body
application/jsonStatus change, as an array with one item.
Hide Sub-Attributes
Show Sub-Attributes
New membership status. Allowed: 2=Approve request, 3=Reject request, 11=Prospect, 50=Enrolled, 51=Blocked.
ID of the course the membership must belong to.
curl --request PUT \
--url https://trainercentral.zoho.com/tc/api/v1/trainer/updateCourseAttendee/{courseMemberId}.json \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/json' \
--header 'tc-orgId: 51517414' \
--data '{"courseMembers":[{"status":2}]}' {
"courseMembers": [
{
"status": 2
}
]
}
{
"courseMembers": [
{
"status": 3,
"courseId": 3000000000022
}
]
}
Response Parameters
The course member after the change.
Hide Sub-Attributes
ID of the course member (courseMemberId).
Same as courseMembersId.
ID of the course or group.
Same as courseId.
User ID (zuid) of the member.
Academy member ID.
ID of the academy (orgId).
Role in the course. Allowed: 0=Course admin, 1=Trainer, 3=Learner, 4=Previewer.
Membership status. Allowed: 0=None, 1=Access requested, 2=Approved, 3=Rejected, 10=Invited, 11=Prospect, 50=Enrolled, 51=Blocked.
Learner progress status. Allowed: 1=Invited, 2=Access requested, 3=Access rejected, 4=Access approved, 5=Free preview, 6=Prospect, 7=Enrolled, 8=Accessed, 9=Access revoked, 10=Blocked, 11=Preview user, 12=Deleted.
Full name of the member.
Email of the member; * when hidden from trainers.
Profile image URL.
Course completion percentage (0-100).
How the course was completed. Allowed: 0=By the learner, 1=Marked by a trainer.
Number of lessons completed.
Total number of lessons in the course.
Last membership change in epoch milliseconds.
Invite time in epoch milliseconds.
First enrollment time in epoch milliseconds.
Completion time in epoch milliseconds.
Last time the learner opened the course, in epoch milliseconds.
Last sign-in time in epoch milliseconds.
IP address of the last sign-in.
Country of the last sign-in.
true when a certificate has been issued.
true when a badge has been issued.
Amount the learner paid, in the academy base currency.
totalRevenue with the currency symbol.
Access expiry time in epoch milliseconds.
Error details.
Hide Sub-Attributes
Deprecated numeric error code (for example ST_202). Prefer codeStr; omitted from doc samples.
Error code name (ShowtimeErrorCode / err_code_str), for example MISSING_PARAMETER.
Error message.
Possible Error Codes
| HTTP Code | Error Code | Description |
|---|---|---|
| 500 | ST_84 | INVALID_ACTION - Invalid courseMemberId or status, or the learner is already enrolled. Send a valid courseMemberId and status 2 or 3. Do not retry unchanged. |
| ST_102 | UNAUTHORISED_ACCESS - The user is not an academy owner, admin or trainer of this course. Do not retry with the same token. |
{
"courseMember": {
"courseMembersId": "3000000000091",
"id": "3000000000091",
"courseId": "3000000000022",
"userId": "51456991",
"orgMemberId": "3000000000003",
"orgId": "51517414",
"role": "3",
"status": "2",
"currentStatus": "4",
"completionPercentage": "0",
"time": "1785241782247"
}
}
{
"error": {
"code": "string",
"codeStr": "string",
"message": "string"
}
}
500 Request failed; see the error code.Rate Limits
Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.