POST
/v1/enrolments/
curl \
--request POST 'https://classmanager.test/v1/enrolments/' \
--header "Content-Type: application/json" \
--data '[{"studentId":"stu_123123123123","classId":"cls_123123123123","pricingPlanId":"pp_123123123123","startAt":"2024-03-20","endAt":"2024-03-20"}]'
Request examples
[
{
"studentId": "stu_123123123123",
"classId": "cls_123123123123",
"pricingPlanId": "pp_123123123123",
"startAt": "2024-03-20",
"endAt": "2024-03-20"
}
]
Response examples (200)
[
{
"id": "enr_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"companyId": "co_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"classId": "cls_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"studentId": "stu_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"startAt": "2023-12-05",
"endAt": "2023-12-05"
}
]
Response examples (403)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}
Response examples (422)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}