Modifying and deleting holidays
Modifying holidays
Use the following endpoint to modify a holiday:
- PATCH
/admin/v1/holidays/{holidayId}
For example, the following request modifies the New Year's Day holiday (ID of
cc:SykmXn31Po4-cC6hr-I5y) in ClaimCenter to designate it as a
company holiday.
Command
PATCH /admin/v1/holidays/cc:SykmXn31Po4-cC6hr-I5y
Request
{
"data": {
"attributes": {
"holidayTags": [
{
"code": "CompanyHolidays",
"name": "Company Holidays"
}
]
}
}
}
Deleting holidays
Use the following endpoint to delete a holiday:
- DELETE
/admin/v1/holidays/{holidayId}
For example, the following request deletes the holiday with the id of
pc:SykmsaXoNo4-cC6hr-I5y in PolicyCenter.
Command
DELETE /admin/v1/holidays/pc:SykmsaXoNo4-cC6hr-I5y
<no request body>