Skip to main content
PATCH

Overview

Turn the holiday list feature on or off for your organization. This is an organization-wide setting, not a setting for one list. When it’s off, the Holiday List option is hidden when creating or editing a campaign in the dashboard. When you turn it on and your organization has no holiday lists yet, a default list named “India Holidays” is created from the IN template. The setting doesn’t change calling: a campaign that has a holiday list still skips its dates when the setting is off, and the API accepts holidayListId either way.

Prerequisites

  • An API key for your workspace

Endpoint

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.

Request Parameters

boolean
required
true to turn holiday lists on, false to turn them off. Must be a JSON boolean, not a string.

Response

boolean
required
Indicates whether the setting was changed.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – Enable field must be a boolean.
  • 404 Not Found – Organization not found.
  • 401 Unauthorized – Missing or invalid API key.
  • 500 Internal Server Error – Unexpected server error.