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 active
course-id must be active
- if user is already enrolled, either
start or end must be sent to change enrollment
end must be after start - 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"
}
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-idmust be activecourse-idmust be active- if user is already enrolled, either
startorendmust be sent to change enrollment endmust be afterstart- either the submitted date or the date already on file for the user
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"}