Enrols many users in a course in one call, either from an explicit id list or by copying the membership of another space or course in batches.
Send up to 500 ids in user_ids; larger payloads are rejected with a 413 so the client must chunk them. With no ids the request is treated as a source-copy batch and the response reports how many were added, skipped and failed so the client can resume from the returned offset.
Endpoint
Method:
POSTPath:
/admin/courses/{course_id}/students/bulk-addEdition: PRO
Controller:
BulkMembersController@bulkAddStudentsRoute source:
fluent-community-pro/app/Http/Routes/api.php:115Controller source:
fluent-community-pro/app/Http/Controllers/BulkMembersController.phpRequires a course admin for this course.
Requires FluentCommunity Pro.
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.
POST Post Bulk Add Students
Enrols many users in a course in one call, either from an explicit id list or by copying the membership of another space or course in batches.
Controller: BulkMembersController@bulkAddStudents
Route source: fluent-community-pro/app/Http/Routes/api.php:115
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Course ID extracted from the URL path.
Request Body
Responses
Successful response