Holiday calendar
Create holiday calendar
Creates a new holiday calendar with associated holidays.
This endpoint does not generate an event.
post/v1/holiday-calendar
Request
- Base URLhttps://sandbox.pismolabs.io/holidays-core
- URLhttps://sandbox.pismolabs.io/holidays-core/v1/holiday-calendar
- AuthHTTP bearer
Request body
Example request
{
"name": "Brazil holiday calendar",
"type": "Country",
"external_id": "f89urqljnahosluiefku",
"holidays": [
{
"name": "New Year's Day",
"holiday_date": "2023-12-01",
"description": "Day to party like it's 1999"
}
],
"parent_external_id": "f89urqljnahosluiefku",
"parent_id": 8675309,
"working_days": [
1,
2,
3,
4,
5
]
}Response
Created
Example response
{
"external_id": "f89urqljnahosluiefku",
"holiday_calendar_id": 8675309,
"holidays": [
{
"description": "Day to party like it's 1999",
"holiday_date": "2023-12-01",
"holiday_id": 8675309,
"name": "New Year's Day",
"working_date": "2023-01-02"
}
],
"name": "New Year's Day",
"parent_external_id": "f89urqljnahosluiefku",
"parent_id": 8675309,
"type": "Country",
"working_days": [
1,
2,
3,
4,
5
]
}Changes
No recorded changes to this operation across all 1 revision of this API.