cURL
curl --request POST \ --url https://app.msportal.ai/api/public/v1/training/enrollments/bulk \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "courseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "userIds": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ], "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "dueDate": "2023-11-07T05:31:56Z" } '
{ "data": { "enrolled": 123, "skipped": 123, "total": 123 } }
Enroll multiple users in a course at once. Users already enrolled will be skipped.
Use your API key as a Bearer token. API keys can be generated in Settings → Integrations → API Access.
Course ID (required)
Array of user IDs (1-100)
1 - 100
Company context
Due date for all enrollments
Bulk enrollment result
Show child attributes