PUT
/v1/holidays/{id}
curl \
--request PUT 'https://classmanager.test/v1/holidays/hol_xxxxxxxx' \
--header "Content-Type: application/json" \
--data '{"name":"Christmas","startAt":"2023-12-25","endAt":"2023-12-25"}'
Request examples
{
"name": "Christmas",
"startAt": "2023-12-25",
"endAt": "2023-12-25"
}
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"
}
Response examples (403)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}
Response examples (404)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}