Create a holiday
POST/api/holidays
- settings.company: allows to create resources.
Here the dedicated support page.
Request
Header Parameters
The company you want to interact with
The API version you want to use
- application/json
Body
Possible values: <= 255 characters
The holiday name
Is repeating holiday
Holiday date. This follows the YYYY-MM-DD format
Possible values: >= 1
and <= 31
Holiday repeating day
Possible values: >= 1
and <= 12
Holiday repeating month
Responses
- 201
- 400
- 401
- 403
Returns the holiday created.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 1
Possible values: <= 255 characters
The holiday name
Is repeating holiday
Holiday date. This follows the YYYY-MM-DD format
Possible values: >= 1
and <= 31
Holiday repeating day
Possible values: >= 1
and <= 12
Holiday repeating month
{
"id": 1,
"created_at": "2025-05-14T14:57:27.612Z",
"updated_at": "2025-05-14T14:57:27.612Z",
"name": "New Year's Day",
"repeating": true,
"exact_date": null,
"repeating_day": 1,
"repeating_month": 1
}
Validation failed
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Error unique key
Human-readable message describing the error
failures
object[]
List of validation errors
Name of the field causing the error
Human-readable description of the error
{
"key": "invalid_data",
"message": "You provided invalid data. Check 'failures' for details.",
"failures": [
{
"field": "string",
"message": "string"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}