Revoke learner's access to a course API

Revoke learner's access to a course API

Description: To revoke a learner's access to a course.

Request URL: <domain>/api/v4/<orgId>/updateCourseAttendee/<courseMemberId>.json
Method: PUT
OAuth Scope: TrainerCentral.courseapi.UPDATE
Parameters: NA

Request Body: 
  1. {
  2.   "courseMembers":[{"status":51}]
  3. }

Sample Request:
https://zylkeracademy.trainercentral.com/api/v4/700000804/updateCourseAttendee/7800038000804.json

Sample Request Body:
  1. {
  2.   "courseMembers":[{"status":51}]
  3. }

Set the courseMembers status as 51 to revoke access to a course.

Also read: 
    • Related Articles

    • List of all TrainerCentral APIs

      Getting Started Get Oauth token API Course APIs Create chapter API Edit chapter API Create course API Edit course API Create lesson API Edit lesson API Create assignment API Delete lesson/live workshop/assignment API Delete chapter API Delete course ...
    • Track a learner's progress

      To monitor an individual learner's enrollment and report, a user with Super Admin or Admin privileges can follow the steps below. If you want to view the consolidated report of all learners' performance in a specific or all courses, refer to this ...
    • Invite learner to course API

      Description: To invite a learner to your course. Request URL: /api/v4/<orgId>/addCourseAttendee.json (How do I get my orgId?) OAuth Scope: TrainerCentral.userapi.CREATE Method: POST Request Parameters: { "courseAttendee": { "email"         : ...
    • Add multi-language support to course videos

      TrainerCentral lets you offer the same course video in multiple audio languages, making it easier for learners to access content in their preferred language. Instead of creating separate lessons for each language, you can group translated versions of ...
    • Learner reports API

      Course Report Description: To fetch the course engagement report of a particular learner. Request URL: /api/v4/<orgId>/course/<courseId>/courseMember/<courseMemberId>/courseEngagement.json (How do I get the courseMemberID?) Method: GET OAuth scope: ...