---
title: "Block Days Off"
method: POST
path: "/api/workforce/days-off"
tags: ["workforce"]
---

# Block Days Off

`POST /api/workforce/days-off`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/workforce/days-off`
- Auth: none declared

Block off a range. Before the schedule posts it is accepted at once --
no approval, no refusal, never counted against you (`days_off.block`).
After it posts, 409 with what to do instead: swap, or call out.

## Request body

- DaysOffBody: "Away from ... to ...", and why if they want to say.
  - `first_day` string, date, required
  - `last_day` string, date, required
  - `note` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
