/v1/admin/bank-holidaysThe business's bank holidays
Any signed-in staff member. From the GOV.UK list the business follows (its bank_holiday_region setting), from and to at most two years apart; working is set for those it works.
Parameters
fromstring (date), in the query, requiredtostring (date), in the query, required
Response 200 · object
Done.
bank_holidaysarray of BankHoliday, requireddatestring (date), requiredtitlestring, requiredworkingboolean, required
{
"bank_holidays": [
{
"date": "date",
"title": "string",
"working": true
}
]
}Response 400 · Error
The request is not valid.
errorobject, requiredcodestring, requiredA short machine-readable name, such as not_found.
messagestring, requiredWhat went wrong, for people.
request_idstring, requiredMatches the X-Request-ID response header.
{
"error": {
"code": "string",
"message": "string"
},
"request_id": "string"
}Response 401 · Error
No tenant key, or no valid session.
Fields as in The business's bank holidays
Response 403 · Error
The session may not do this.
Fields as in The business's bank holidays
Response 500 · Error
Something failed on our side.
Fields as in The business's bank holidays