POST /v1/make-up-lessons/

Create Make Up Lesson

application/json

Body Required

Request for creating an make up lesson

  • data array[object] Required

    Data

    Make Up Lesson schema

    Hide data attributes Show data attributes object
    • courseId string Required

      Class ID

    • studentId string Required

      Student ID

    • date string(date) Required

      Date

    • time string Required

      Time

Responses

  • 200 application/json

    successful operation

    Hide response attributes Show response attributes object
    • id string Required

      Make up lesson ID

    • companyId string Required

      Company ID

    • courseId string Required

      Class ID

    • studentId string Required

      Student ID

    • date string(date) Required

      Lesson date

    • time string(time) Required

      Lesson time

  • 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/make-up-lessons/
curl \
 --request POST 'https://api.classmanager.io/v1/make-up-lessons/' \
 --header "Content-Type: application/json" \
 --data '{"data":[{"courseId":"cls_xxxxxxxxxxxxxxxxxxxxxxxxxx","studentId":"stu_xxxxxxxxxxxxxxxxxxxxxxxxxx","date":"2024-03-20","time":"21:30"}]}'
Request examples
{
  "data": [
    {
      "courseId": "cls_xxxxxxxxxxxxxxxxxxxxxxxxxx",
      "studentId": "stu_xxxxxxxxxxxxxxxxxxxxxxxxxx",
      "date": "2024-03-20",
      "time": "21:30"
    }
  ]
}
Response examples (200)
[
  {
    "id": "mkpl_xxxxxxxxxxxxxxxxxxxxxxxxxx",
    "companyId": "co_xxxxxxxxxxxxxxxxxxxxxxxxxx",
    "courseId": "cls_xxxxxxxxxxxxxxxxxxxxxxxxxx",
    "studentId": "stu_xxxxxxxxxxxxxxxxxxxxxxxxxx",
    "date": "2023-12-05",
    "time": "23:15"
  }
]
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (422)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}