Mark a course completed for a learner.

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

Marks a whole course completed for one learner, or resets their progress. A reset deletes the learner's lesson progress and assignment submissions in the course.

Endpoint

post https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/course/{courseId}/manualCourseCompletion.json

OAuth Scope

TrainerCentral.courseapi.CREATECopied!

Headers

tc-orgIdstring(Required)

ID of the academy (orgId).

Example
51517414

Path Parameters

courseIdstring(Required)

ID of the course.

Request Body

application/json
isCourseCompletedboolean(Required)

true marks the course completed for the learner; false resets their progress and deletes their assignment submissions.

courseMemberIdlong(Required)

courseMemberId of the learner (role 3).

Request Example

cURL
cURL
Java
Python
Deluge
Copied!
curl --request POST \
  --url https://trainercentral.zoho.com/tc/api/v1/trainer/course/{courseId}/manualCourseCompletion.json \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
  --header 'content-type: application/json' \
  --header 'tc-orgId: 51517414' \
  --data '{"isCourseCompleted":true,"courseMemberId":3000000000090}'

Body Parameters

Mark a course completed.

Mark a course completed.

Reset learner progress.

Copied!
  {
    "isCourseCompleted": true,
    "courseMemberId": 3000000000090
  }
                
  {
    "isCourseCompleted": false,
    "courseMemberId": 3000000000090
  }
                
▼ Show full

Response Parameters

completedPercentagestring

Course completion percentage (0-100) after the change.

completedLessonsstring

Number of lessons completed after the change.

isCompletedstring

true when the course was marked completed; false when progress was reset.

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 - No access to this course, or courseMemberId is not a learner of it. Do not retry unchanged.

Response Example

Course marked completed.

200
200
400
500
Copied!
  {
    "isCompleted": "true",
    "completedLessons": "4",
    "completedPercentage": "100"
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full

Rate Limits

Duration1 minute
Threshold10
Lock Period5 minutes

Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.