---
title: "Service Document Route"
method: POST
path: "/api/equipment/{equipment_id}/service-document"
tags: ["equipment"]
---

# Service Document Route

`POST /api/equipment/{equipment_id}/service-document`

## 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}/service-document`
- Auth: none declared

README section 6: "Accept a service record without a document" is
the first thing this route must never do -- `file` is optional only so
a missing upload reads as a named 422 (`EquipmentServiceDocumentMissing`)
rather than FastAPI's generic body-validation error.

## Path parameters

- `equipment_id` string, uuid, required

## Request body `multipart/form-data`

- BodyServiceDocumentRouteApiEquipmentEquipmentIdServiceDocumentPost
  - `file` string, binary, 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)
