---
title: "Add holiday"
method: POST
path: "/v1/holiday-calendar/holiday"
tags: ["Holiday calendar"]
---

# Add holiday

`POST /v1/holiday-calendar/holiday`

## Request

- Base URL: `https://sandbox.pismolabs.io/holidays-core`
- URL: `https://sandbox.pismolabs.io/holidays-core/v1/holiday-calendar/holiday`
- Auth: HTTP bearer

Add a new holiday to an existing holiday calendar. 

This endpoint generates a _______ event.

## Request body

- PresenterAddHolidayToCalendarRequest
  - `holiday_date` string, required: Holiday date. Format = yyyy-mm-dd.
  - `name` string, required: Holiday name
  - `description` string: Holiday description
  - `external_id` string: Client-created external ID. Either this field or `holiday_calendar_id` is **REQUIRED**. Pass one or the other but not both.
  - `holiday_calendar_id` integer: Holiday calendar ID. Either this field or `external_id` is **REQUIRED**. Pass one or the other but not both.
  - `metadata` Metadata: A valid JSON schema as specified in https://json-schema.org/specification.html. Used to register rules used to authorize the transaction. **Note**: This field must not be used to send Personally Identifiable Information (PII), Payment Card Industry (PCI) data, or any sensitive/regulated information. Metadata fields are intended for operational, non-sensitive data only. For sensitive data, use the specific parameters designed for that purpose. For more information, refer to [Get started with Pismo APIs](ref:get-started-with-pismo-apis#metadata).

## Response `201`

OK

- PresenterAddHolidayToCalendarResponse
  - `created_at` string, datetime: Date and time the holiday was created. Format = yyyy-mm-ddTHH:mm:ss.
  - `description` string: Holiday description
  - `external_id` string: Client-created external ID
  - `holiday_calendar_id` integer: Holiday calendar ID
  - `holiday_date` string: Holiday date. Format = yyyy-mm-dd.
  - `holiday_id` integer: Holiday ID
  - `metadata` Metadata: A valid JSON schema as specified in https://json-schema.org/specification.html. Used to register rules used to authorize the transaction. **Note**: This field must not be used to send Personally Identifiable Information (PII), Payment Card Industry (PCI) data, or any sensitive/regulated information. Metadata fields are intended for operational, non-sensitive data only. For sensitive data, use the specific parameters designed for that purpose. For more information, refer to [Get started with Pismo APIs](ref:get-started-with-pismo-apis#metadata).
  - `name` string: Holiday name
  - `working_date` string, date: Next work day following the holiday. Format = yyyy-mm-dd.

## Other responses

- `400`: Bad request
- `404`: Not found
- `409`: Conflict
- `500`: Internal server error

---

[API](https://skmtc.dev/pismo/apis/platform-setup-holidays.md) - [All operations](https://skmtc.dev/pismo/apis/platform-setup-holidays/llms.txt) - [OpenAPI document](https://skmtc.dev/pismo/apis/platform-setup-holidays/revisions/53e8339180bd?raw)
