PUT
/v1/enrolments
curl \
--request PUT 'https://api-dev.classmanager.io/v1/enrolments' \
--header "Content-Type: application/json" \
--data '[{"id":"enr_xxxxxxxxxxxxxxxxxxxxxxxxxx","startAt":"2023-12-05","endAt":"2023-12-05"}]'
Request examples
[
{
"id": "enr_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"startAt": "2023-12-05",
"endAt": "2023-12-05"
}
]
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": {}
}