---
title: "Record Planned Downtime Route"
method: POST
path: "/api/equipment/{equipment_id}/planned-downtime"
tags: ["equipment"]
---

# Record Planned Downtime Route

`POST /api/equipment/{equipment_id}/planned-downtime`

## 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/equipment/{equipment_id}/planned-downtime`
- Auth: none declared

Frederick, 2026-10-20: "the scanner number 2 ... is down for maintenance tomorrow. So that
needs to be noted so that you adjust schedules and jobs." Records the window; the plan counts
the machine down on the floor days it covers within one sizing tick. NOT an outage: no vendor
email, no alert, no status change. Runbook `docs/runbooks/PLANNED_EQUIPMENT_DOWNTIME.md`.

## Path parameters

- `equipment_id` string, uuid, required

## Request body

- PlannedDowntimeRequest: A window in which a machine is out of service on purpose (issue #6459). Both ends carry a timezone offset; the floor's day is America/Los_Angeles. `ends_at` left out (2026-11-24, scheduler break S1): a person SAID the machine is down and nobody knows when it is fixed. It stays down for the plan until the window is cancelled (William says it is fixed, rule SCN-6 item 4) or, for a scanner, until that scanner writes a scan. `starts_at` is when they said it; `reason` carries who, when and their words.
  - `starts_at` string, date-time, required
  - `ends_at` string, date-time, nullable
  - `reason` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-24** `f79c4bfd9a54`: 2 info
  - the request property `ends_at` became optional
  - request property `ends_at` list-of-types was widened by adding types `null` to media type `application/json`
- **2026-10-21** `1f1f78360f4c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/changes/api/equipment/:equipment_id/planned-downtime/post.md)

---

[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)
