application/json

Body

Request for creating a new trial

  • studentId string Required

    Student ID

  • classId string Required

    Class ID

  • trialAt string(date) Required

    Date of trial

  • time string(time) Required

    Time of trial

Responses

  • 200 application/json

    successful operation

    Hide response attributes Show response attributes object
    • id string Required

      id

    • companyId string Required

      Company ID

    • classId string Required

      Class ID

    • studentId string Required

      Student ID

    • trialAt string(date) Required

      Date of trial

    • time string(time) Required

      Time of trial

    • archivedAt string(date-time) | null Required

      Archived at

  • 403 application/json

    Not authorized

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

  • 422 application/json

    Validation error

    Hide response attributes Show response attributes object
    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

POST /v1/trials/
curl \
 --request POST 'https://classmanager.test/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": {}
}