POST /courses/enrollments/
Description
Enrolls user user-id
into online course course-id
.
Endpoints
POST /courses/enrollments/{course-id}/{user-id}/
Parameters
start
: (date8)
[optional]
end
: (date8)
[optional]
Notes
user-id
must be activecourse-id
must be active- if user is already enrolled, either
start
orend
must be sent to change enrollment end
must be afterstart
- either the submitted date or the date already on file for the user
Returns
status, course_id, user_id
and also start_date
if start
was sent, and end_date
if end
was sent.{
"status": "200",
"course_id": "1",
"user_id": "2",
"start_date": "20240315",
"end_date": "20240601"
}