POST /v1/lesson-adjustments/{id}/restore

Restore Lesson Adjustment

Path parameters

  • id string Required

    LessonAdjustment id

Responses

  • 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

  • 404 application/json

    Not found

    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

  • 200 application/json

    successful operation

    Hide response attributes Show response attributes object
    • id string Required

      Lesson adjustment ID

    • classId string Required

      Class ID

    • companyId string Required

      Company ID

    • reason string Required

      Values are cancelled-lesson, cancelled-class, changed-date, additional-lesson, or delayed-start-class.

    • type string Required

      Values are addition or deduction.

    • startAt string(date)

      Start date

    • endAt string(date)

      End date

    • time string | null Required

      Time

POST /v1/lesson-adjustments/{id}/restore
curl \
 --request POST 'https://api.classmanager.io/v1/lesson-adjustments/lsad_xxxxxxxx/restore'
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (404)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (200)
{
  "id": "lsad_xxxxxxxxxxxxxxxxxxxxxxxxxx",
  "classId": "cls_xxxxxxxxxxxxxxxxxxxxxxxxxx",
  "companyId": "co_xxxxxxxxxxxxxxxxxxxxxxxxxx",
  "reason": "cancelled-lesson",
  "type": "addition",
  "startAt": "2024-03-20",
  "endAt": "2024-03-20",
  "time": "21:30"
}