cURL
curl --request GET \ --url https://api.absentify.com/api/v1/public_holidays/{id} \ --header 'X-API-KEY: <api-key>'
{ "id": "<string>", "name": "<string>", "createdAt": "<string>", "updatedAt": "<string>", "country_code": "<string>", "county_code": "<string>", "public_holiday_days": [ { "id": "<string>", "date": "<string>", "year": 123, "custom_value": true, "duration": "Morning", "updatedAt": "<string>", "createdAt": "<string>", "public_holiday_day_languages": [ { "id": "<string>", "name": "<string>", "language": "<string>" } ] } ] }
Read a public holiday by id
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Successful response
Show child attributes
Was this page helpful?