Bulk-enroll students
Changed onEnroll up to BATCH_MAX_ITEMS students into one published course.
The hybrid envelope shares published_course_id and expires_at at the top level; data is the per-row item list. Each row is processed independently — a failure on one row does not abort the rest. Response is 200 if every row succeeded, 207 if any row failed, 400 if the request envelope is empty, over the cap, or carries a past expires_at (matches the ticket AC "past timestamps return 400, request-level").
Within-batch duplicate detection is first-wins: subsequent occurrences of an email are pre-marked duplicate_in_batch without reaching the service.
See api_v2/docs/enrollments.md for the per-row failure-code vocabulary, reactivation behavior, retry contract, and demo seed prerequisites.
Required OAuth scope: enrollments:write
Request
- Base URLhttps://api.skilljar.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
OK
Changes
- warning
added the new
already_in_pathenum value to the////response property for the response status - warning
added the new
already_in_pathenum value to the////response property for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- warning
- info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status
- info