Unenrols a student from the course.
Endpoint
Method:
DELETEPath:
/admin/courses/{course_id}/students/{student_id}Edition: Core
Controller:
CourseAdminController@removeStudentRoute source:
fluent-community/Modules/Course/Http/course_api.php:31Controller source:
fluent-community/Modules/Course/Http/Controllers/CourseAdminController.phpRequires a course admin for this course, or a WordPress user with
manage_options.Destructive: removing the enrolment also removes the progress tied to it, so re-adding the student does not restore their completions.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
DELETE Remove Course Student
Unenrols a student from the course.
Controller: CourseAdminController@removeStudent
Route source: fluent-community/Modules/Course/Http/course_api.php:31
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Course ID extracted from the URL path.
Student ID extracted from the URL path.
Responses
Successful response