Publish, unpublish or schedule a course.
Publishes a course, takes it back to draft, or schedules it to publish later. Send publishStatus, or scheduleType 1 with scheduledTime.
Endpoint
put https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/courses/{courseId}.json
OAuth Scope
Headers
ID of the academy (orgId).
Path Parameters
ID of the course.
Request Body
application/jsonPublish change. Send publishStatus, or scheduleType with scheduledTime.
Hide Sub-Attributes
New publish status. Allowed: 0=Draft, 1=Published, 2=Suspended.
true also publishes every draft lesson. Default false.
Publish schedule. Allowed: 0=Instant (cancels a scheduled publish), 1=Scheduled at scheduledTime.
Publish time in epoch milliseconds. Required when scheduleType is 1.
curl --request PUT \
--url https://trainercentral.zoho.com/tc/api/v1/trainer/courses/{courseId}.json \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/json' \
--header 'tc-orgId: 51517414' \
--data '{"course":{"publishStatus":1,"publishAllDraftedSessions":true}}' {
"course": {
"publishStatus": 1,
"publishAllDraftedSessions": true
}
}
{
"course": {
"publishStatus": 0
}
}
{
"course": {
"scheduleType": 1,
"scheduledTime": 1790000000000
}
}
{
"course": {
"scheduleType": 0
}
}
Response Parameters
The updated course.
Hide Sub-Attributes
ID of the course.
Same as courseId.
Name of the course.
Public URL of the course page.
Subtitle shown below the course name.
Description of the course. Supports rich text.
Type of record. Allowed: 0=Course, 1=Course bundle, 2=Group, 3=Instructor-led course.
URL slug of the course, unique in the academy.
Visibility. Allowed: 0=Default, 1=Featured, 2=Hidden, 4=Private, 5=Private and featured, 6=Private and hidden.
Publish status. Allowed: 0=Draft, 1=Published, 2=Suspended.
ID of the academy (orgId).
true when the course is featured.
true when the course is hidden from the course list; it stays reachable by direct link.
true when only invited or approved learners can enroll.
true when learners can review the course.
Number of enrolled learners.
Publish schedule. Allowed: 0=Instant, 1=Scheduled at scheduledTime.
Scheduled publish time in epoch milliseconds.
true when learners must finish a set percentage of the material to complete a lesson.
true when learners must watch a set percentage of the recording to complete a lesson.
true when learners must pass the lesson tests to complete a lesson.
true when the estimated duration is shown to learners.
true when the course has an active paid ticket.
User ID of the creator.
Creation time in epoch milliseconds.
User ID of the last editor.
Last update time in epoch milliseconds.
Creation time in epoch milliseconds.
true when learners must complete lessons in order.
Percentage (0-100) of lesson material to finish.
Percentage (0-100) of the recording to watch.
true when live lessons do not count toward completion.
true when live lessons are skipped by the lesson order.
true when every occurrence of a recurring live lesson counts in the lesson order.
true when an unenrolled learner needs approval to re-enroll.
Estimated duration, in durationType units.
Unit of durationValue. Allowed: 0=Minutes, 1=Hours, 2=Days, 3=Weeks.
Material ID of the thumbnail image.
URL of the thumbnail image.
Average learner rating (1-5).
Number of ratings.
Total revenue in the academy base currency.
totalRevenue with the currency symbol.
Formatted price of the default paid ticket.
ID of the registration form used at enrollment.
Deletion time in epoch milliseconds.
Category mappings added by this call.
Hide Sub-Attributes
Show Sub-Attributes
ID of the mapping.
categoryId of the category.
courseId of the course.
Categories newly created from categoryName.
Hide Sub-Attributes
Show Sub-Attributes
categoryId of the new category.
Name of the new category.
orgId of the academy.
Trainers of the course.
Hide Sub-Attributes
Show 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.
Draft lessons published by publishAllDraftedSessions.
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_94 | INVALID_COURSE - Course not found or deleted. Pass a valid courseId. 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. | |
| ST_811 | COURSE_LIMIT_EXCEEDED - Published course limit of the plan reached. Unpublish another course or upgrade the plan. | |
| ST_820 | COURSE_SCHEDULEPUBLISHFEATURE_UNAVAILABLE - The plan does not include scheduled publishing. Publish now or upgrade the plan. | |
| ST_1207 | CANNOT_CHANGE_COMPLETED_BATCH - The batch is already completed; its publish status cannot change. Do not retry. | |
| ST_816 | COURSE_BUNDLE_UNAVAILABLE - The plan does not include course bundles. Upgrade the plan. |
{
"course": {
"courseId": "3000000000022",
"id": "3000000000022",
"courseName": "Advanced Python",
"kind": "0",
"type": "0",
"publishStatus": "1",
"enableReview": "true",
"uniqueKey": "advanced-python",
"courseURL": "https://academy.example.com/course/advanced-python",
"orgId": "51517414",
"lastUpdatedBy": "51456901",
"lastUpdatedTime": "1782727715513"
},
"sessions": [
{
"id": "3000000000051",
"name": "Python Refresher",
"course": "3000000000022",
"section": "3000000000050",
"sessionIndex": "0",
"deliveryMode": "4",
"enablePrerequisite": "false",
"enableDraft": "false"
}
]
}
{
"course": {
"courseId": "3000000000022",
"id": "3000000000022",
"courseName": "Advanced Python",
"publishStatus": "0",
"scheduleType": "1",
"scheduledTime": "1790000000000",
"orgId": "51517414",
"lastUpdatedTime": "1782727715513"
}
}
{
"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.