POST
/v1/trials/
curl \
--request POST 'https://api-dev.classmanager.io/v1/trials/' \
--header "Content-Type: application/json" \
--data '[{"studentId":"st_123123123123","classId":"cl_123123123123","trialAt":"2023-12-05","time":"23:15"}]'
Request examples
[
{
"studentId": "st_123123123123",
"classId": "cl_123123123123",
"trialAt": "2023-12-05",
"time": "23:15"
}
]
Response examples (200)
[
{
"id": "trl_xxxxxxxxxxx",
"companyId": "co_123123123123",
"classId": "cls_123123123123",
"studentId": "stu_123123123123",
"trialAt": "2023-12-05",
"time": "23:15",
"archivedAt": "2024-06-12T09:39:49.000000Z"
}
]
Response examples (403)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}
Response examples (422)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}