---
title: "Batch Fetch Holidays"
method: POST
path: "/api/v2/resource_management/holidays/batch-fetch"
tags: ["Holiday"]
---

# Batch Fetch Holidays

`POST /api/v2/resource_management/holidays/batch-fetch`

Batch fetch holidays for a given list of holiday ids

## Query parameters

- `exclude` string
- `keyList` string

## Headers

- `Authorization` string, required

## Request body

- BatchFetchEntityRequestSchema
  - `entityIds` string[], required — list of entity ids to fetch the entity objects

## Response `200`

OK

- object
  - `data` HolidaySchema[]
    - `createdAt` integer, nullable — Created timestamp for the holiday
    - `updatedBy` string, nullable — User who updated the holiday
    - `isArchived` boolean, nullable — A flag indicating if holiday is archived
    - `holidayDate` integer, nullable, required — Date of the holiday
    - `createdBy` string, nullable — User who created the holiday
    - `holidayName` string, nullable — Name of the holiday
    - `archivedAt` integer, nullable — Archived timestamp for the holiday
    - `updatedAt` integer, nullable — Updated timestamp for the holiday
    - `holidayType` 'public_holiday' | 'optional_holiday', nullable, required — Type of the holiday
    - `region` string, nullable — Region of the holiday
    - `holidayId` integer, nullable — Holiday id
  - `meta` BatchFetchMetaSchema
    - `missingEntityIds` string[], nullable — List of entity ids for which no result was found

---

[API](https://skmtc.net/eightfold/apis/api-server-v2-service-service.md) · [All operations](https://skmtc.net/eightfold/apis/api-server-v2-service-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eightfold/api-server-v2-service-service/versions/0fb26f4e41bf/schema)
