---
title: "Create working hours holiday"
method: POST
path: "/ccaas/1/working-hours/{workingHoursId}/holiday"
tags: ["customer-engagement", "conversations", "working-hours"]
---

# Create working hours holiday

`POST /ccaas/1/working-hours/{workingHoursId}/holiday`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/ccaas/1/working-hours/{workingHoursId}/holiday`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic

Use this method to create a holiday on working hours.
An auto-reply message will be sent to the customer when working hours are set and enabled and a new conversation is created outside of working hours,
or a holiday is set for the enabled working hours and a new conversation is created during the holiday.
This method will return a full working hours object with a created holiday in it.

## Path parameters

- `workingHoursId` string, required

## Request body

- 25bc6165974db08bf3072efbf58365d643c5a11027c569c8010b72d1e1d5233fHolidaysApiModel: List of working hours holidays.
  - `id` string: Holiday ID.
  - `name` string, required: Holiday name.
  - `startDate` string, date-time: Start date. Format: yyyy-MM-dd
  - `endDate` string, date-time: End date. Format: yyyy-MM-dd
  - `enabled` boolean: Holiday enable/disable toggle.

## Response `200`

OK

- 25bc6165974db08bf3072efbf58365d643c5a11027c569c8010b72d1e1d5233fWorkingHoursApiResponse
  - `id` string: Working hours Id.
  - `timezone` string, required: Timezone in which working hours apply. `TZ database name` from [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
  - `message` string, required: Message to be sent as an auto-reply message to the customer.
  - `workWeek` object: List of working hours work days. It must contain all days of the week with 3 parameters each: `startTime`, `endTime` and `enabled`.
    - `startTime` integer: Start time of the day in minutes after midnight.
    - `endTime` integer: End time of the day in minutes before midnight.
    - `enabled` boolean: Daily working hours enable/disable toggle.
  - `name` string, required: Working hours name.
  - `enabled` boolean: Working hours enable/disable toggle.
  - `isDefault` boolean: Default working hours.
  - `closeConversations` boolean: Close conversation created outside of working hours toggle.
  - `sendAwayMessageEveryOOWHPeriod` boolean
  - `holidays` 25bc6165974db08bf3072efbf58365d643c5a11027c569c8010b72d1e1d5233fHolidaysApiModel[]: List of working hours holidays.
    - `id` string: Holiday ID.
    - `name` string, required: Holiday name.
    - `startDate` string, date-time: Start date. Format: yyyy-MM-dd
    - `endDate` string, date-time: End date. Format: yyyy-MM-dd
    - `enabled` boolean: Holiday enable/disable toggle.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
