Create holiday
Use case
Use case data
API parameters with values
We will add a new bank holiday.
"holidayTypeCode": "BANKHOLIDAY"
This bank holiday should apply to Germany. Note: the bank holiday requires country information.
"countryCode": "DE"
The bank holiday date. Note: the date must be in the future.
"date": "2027-12-23"
Sample API call
To create a holiday, use the following endpoint:
https://holiday-api.sandbox.tuumplatform.com/api/v1/holidays
Sample request
The sample request body is as follows:
{
"holidayTypeCode": "BANKHOLIDAY",
"countryCode": "DE",
"date": "2027-12-23"
}
Sample response
Below you will find the response to the sample request:
Result
As a result, a new country-specific bank holiday with the holidayId
ID-4505
was added to the Tuum system.
Last updated
Was this helpful?