Create a learner group.
Creates a learner group in the academy. A group is stored as a course of type 2, so its id is used as courseId in the group APIs.
Endpoint
post https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/courses.json
OAuth Scope
Headers
ID of the academy (orgId).
Request Body
application/jsonDetails of the group to create.
Hide Sub-Attributes
Name of the group.
Description of the group. Supports rich text.
Record type. Allowed: 2=Group.
curl --request POST \
--url https://trainercentral.zoho.com/tc/api/v1/trainer/courses.json \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/json' \
--header 'tc-orgId: 51517414' \
--data '{"course":{"courseName":"Beginner Batch","description":"<p>Learners who joined in January.</p>","type":2}}' {
"course": {
"courseName": "Beginner Batch",
"description": "<p>Learners who joined in January.</p>",
"type": 2
}
}
Response Parameters
The new group.
Hide Sub-Attributes
ID of the group (used as courseId in group APIs).
Same as courseId.
Name of the group.
Record type. Always 2 (Group).
ID of the academy (orgId).
Description of the group. Supports rich text.
Number of learners in the group.
User ID of the creator.
Creation time in epoch milliseconds.
User ID of the last editor.
Last update time in epoch milliseconds.
Members created with the group: the caller as group admin.
Hide Sub-Attributes
Show Sub-Attributes
ID of the group membership (courseMemberId).
Same as courseMembersId.
ID of the group.
Same as courseId.
User ID (zuid) of the member.
Academy member ID.
ID of the academy (orgId).
Role in the group. Allowed: 0=Group admin, 1=Moderator, 3=Learner.
Membership status. Allowed: 0=Active, 10=Invited, 50=Enrolled, 51=Unenrolled.
Full name of the member.
Email of the member; * when hidden from trainers.
Profile image URL.
Last membership change in epoch milliseconds.
Invite time in epoch milliseconds.
Enrollment 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_821 | GROUP_FEATURE_UNAVAILABLE - The plan does not include groups. Upgrade the plan. |
| ST_102 | UNAUTHORISED_ACCESS - The user is not an academy owner or admin. Do not retry with the same token. | |
| ST_811 | COURSE_LIMIT_EXCEEDED - Course limit of the plan reached (groups count too). Delete unused courses or upgrade the plan. |
{
"course": {
"courseId": "3000000000070",
"id": "3000000000070",
"courseName": "Beginner Batch",
"type": "2",
"orgId": "51517414",
"createdBy": "51456901",
"lastUpdatedBy": "51456901",
"time": "1782727568966",
"lastUpdatedTime": "1782727568966"
},
"courseMembers": [
{
"courseMembersId": "3000000000072",
"id": "3000000000072",
"courseId": "3000000000070",
"userId": "51456901",
"role": "0",
"status": "0"
}
]
}
{
"error": {
"code": "string",
"codeStr": "string",
"message": "string"
}
}
500 Request failed; see the error code.© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.