Skip to main content
DELETE

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

Endpoint

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
ID of the holiday list to delete.

Response

boolean
required
Indicates whether the holiday list was deleted.

Error Handling

Errors return status: 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.