curl --location --request DELETE 'https://api.weya.live/backend/api/holiday-list/68a1f2c3b7c7d3f123456789' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Holiday list deleted successfully",
"errorMessage": null,
"data": []
}
Holiday Lists
Delete Holiday List
Delete a holiday list from your organization.
DELETE
/
api
/
holiday-list
/
{id}
curl --location --request DELETE 'https://api.weya.live/backend/api/holiday-list/68a1f2c3b7c7d3f123456789' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Holiday list deleted successfully",
"errorMessage": null,
"data": []
}
Overview
Delete a holiday list from your organization. The default list can’t be deleted: make another list the default first with Update Holiday List. The API doesn’t check whether campaigns use the list. Remove it from those campaigns first with Update Campaign (holidayListId: "").
Prerequisites
- An API key for your workspace
- The holiday list’s ID (
_idfrom Get Holiday Lists)
Endpoint
Request
curl --location --request DELETE 'https://api.weya.live/backend/api/holiday-list/68a1f2c3b7c7d3f123456789' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "Holiday list deleted successfully",
"errorMessage": null,
"data": []
}
Error Handling
Errors returnstatus: false, with the reason in errorMessage.
- 400 Bad Request –
Cannot delete the default holiday list. - 401 Unauthorized – Missing or invalid API key.
- 404 Not Found –
Holiday list not found: the list doesn’t exist in your organization. - 500 Internal Server Error – Unexpected server error.
Was this page helpful?

