curl --request GET \
--url https://api.absentify.com/api/v1/public_holidays/{id} \
--header 'X-API-KEY: <api-key>'
{
"id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"country_code": "<string>",
"county_code": "<string>",
"public_holiday_days": [
{
"id": "<string>",
"date": "2023-11-07T05:31:56Z",
"year": 123,
"custom_value": true,
"duration": "Morning",
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"public_holiday_day_languages": [
{
"id": "<string>",
"name": "<string>",
"language": "<string>"
}
]
}
]
}
Read a public holiday by id
curl --request GET \
--url https://api.absentify.com/api/v1/public_holidays/{id} \
--header 'X-API-KEY: <api-key>'
{
"id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"country_code": "<string>",
"county_code": "<string>",
"public_holiday_days": [
{
"id": "<string>",
"date": "2023-11-07T05:31:56Z",
"year": 123,
"custom_value": true,
"duration": "Morning",
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"public_holiday_day_languages": [
{
"id": "<string>",
"name": "<string>",
"language": "<string>"
}
]
}
]
}
Successful response
The response is of type object
.
Was this page helpful?