POST /v1/holidays/{id}/restore

Restore Holiday

Path parameters

  • id string Required

    Holiday 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

      id

    • companyId string Required

      Company ID

    • name string Required

      Name

    • startAt string(date) Required

      Start At

    • endAt string(date) Required

      End At

    • createdAt string(date-time) Required

      Created at date

POST /v1/holidays/{id}/restore
curl \
 --request POST 'https://api.classmanager.io/v1/holidays/hol_xxxxxxxx/restore'
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (404)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (200)
{
  "id": "hol_xxxxxxxxxxx",
  "companyId": "co_123123123123",
  "name": "Christmas",
  "startAt": "2023-12-25",
  "endAt": "2023-12-25",
  "createdAt": "2023-12-05 14:30:41"
}