POST /v1/waiting-lists/

Create Waiting List

application/json

Body

Request for creating a new waiting list record

  • studentId string

    Student ID

  • classId string

    Class ID

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

    • createdAt string(date-time) Required

      Created date

  • 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/waiting-lists/
curl \
 --request POST 'https://api.classmanager.io/v1/waiting-lists/' \
 --header "Content-Type: application/json" \
 --data '[{"studentId":"stu_123123123123","classId":"cls_123123123123"}]'
Request examples
[
  {
    "studentId": "stu_123123123123",
    "classId": "cls_123123123123"
  }
]
Response examples (200)
[
  {
    "id": "loc_xxxxxxxxxxx",
    "companyId": "co_123123123123",
    "classId": "cls_123123123123",
    "studentId": "stu_123123123123",
    "createdAt": "2023-12-05 14:30:41"
  }
]
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (422)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}