---
title: "Create custom holiday template"
method: POST
path: "/v1/holiday-collections/{collectionId}/templates"
tags: ["Holiday Templates"]
---

# Create custom holiday template

`POST /v1/holiday-collections/{collectionId}/templates`

## Path parameters

- `collectionId` string, required

## Request body

- HolidayTemplateCreateDto
  - `name` string
  - `type` string
  - `customDate` string
  - `customMonth` integer
  - `customDay` integer

## Response `200`

Created template

- HolidayTemplateDto
  - `id` string
  - `collectionId` string
  - `name` string
  - `type` string
  - `sourceType` string
  - `countryCode` string
  - `regionCode` string
  - `jollidayKey` string
  - `recurring` boolean
  - `customDate` string
  - `customMonth` integer
  - `customDay` integer
  - `active` boolean
  - `lastUpdate` integer
  - `created` integer

## Other responses

- `400` — Bad request
- `401` — Not authorized

---

[API](https://skmtc.net/timesheet/apis/timesheet-api.md) · [All operations](https://skmtc.net/timesheet/apis/timesheet-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/timesheet/timesheet-api/revisions/fbe59bacb638/schema)
