---
title: "Reclassify Capture"
method: PATCH
path: "/api/intake/captures/{capture_id}"
tags: ["intake"]
---

# Reclassify Capture

`PATCH /api/intake/captures/{capture_id}`

## 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/intake/captures/{capture_id}`
- Auth: none declared

A person changes a recalled piece's decision by touch; the history is kept, the new answer returned.

OWNER, 2026-10-27, verbatim: "if I bring back parcel number 5 to the camera view, it should bring parcel
number 5 ... and then allow me to manually tap the screen in DLO or whatever else I want to do." Plan
OI-INTAKE-102 part 3; rule FLR-174 history 2026-10-31 (`docs/00_business_rules/FULFILLMENT_AND_FLOOR.md`).

THREE RULES LIVE HERE, all in `intake/domain.reclassify_refusal` (a FOURTH is the envelope-only switch below):

1. **A privilege piece is never changed to Keep by a person (409).** Ruling 2026-10-27-privilege-is-return-to-sender,
   kept by the owner: "Privilege is still a return to sender. So privilege is not a different category." CORRECTED
   2026-11-07 (owner, live, IN-N62B285P: "Trying to change this to DLO because it's actually a true DLO ... it
   doesn't allow me to do anything."): a privilege piece MAY be changed to Return, Hold or DLO, and it keeps its
   privilege reason, so Keep stays refused on every later touch. The refusal names its reason
   (`domain.REFUSAL_WORDS`); the station never shows only "That change was refused."
2. **A piece a person has stopped CAN be changed (CORRECTED 2026-11-07, owner: "I thought stop was to change
   decision").** The change clears the stop in the same write and keeps it in the history row
   (`captures.record_reclassify`, `stop_before`), so no stale stop label is left over the new decision. The
   2026-11-01 refusal (PR 10077 review) is answered that way; ruling 2026-11-07-keep-by-tapping-the-decision.
3. **A change to keep names its facility by code (CORRECTED 2026-11-07, owner: "If you select keep then you have to
   enter the facility code").** A named `facility_code` must be a live facility (`captures.facility_named_by_code`),
   or the answer is 422 with the words. A facility named with any other bin is 422 (`domain.keep_facility_problem`).
   The station always asks for the code on a keep and shows the matched name before the person confirms
   (`GET /api/intake/facilities/{code}`). The server requires a facility on the piece (its own, or the code named),
   not the code in every body: that is the writer's `keep_needs_facility` (422), so privilege still answers 409 first.

The change, its history row (`intake_capture_reclassifications`: who, when, from what to what) and the
read-back are one transaction (`captures.record_reclassify`). The row is the record, so the next photo of the
same sticker shows the new answer (`recall.by_sticker` reads the row; 2026-11-03: the cache is gone). The machine never
re-decides a changed row (`hold_reread._UPDATE_SQL`). 404 when there is no such capture, 422 on a decision
that is not one of the four bins.

A FIFTH EFFECT (owner, Frederick, 2026-11-18, ruling `2026-11-18-a-sent-to-scan-piece-prints-its-label`): a change to KEEP
(Scan) queues the piece's intake ID sticker at the desk the request came from, once (`intake_sticker.queue_keep_sticker`).
A refusal there is logged and never undoes the change.

## Path parameters

- `capture_id` string, uuid, required

## Request body

- ReclassifyRequest: A person's change of one recalled piece's decision: the bin they tapped. OWNER, 2026-10-27: "allow me to manually tap the screen in DLO or whatever else I want to do." The four values are `intake/domain.RECLASSIFY_DECISIONS`; anything else is a 422, never a silent write.
  - `decision` string, required
  - `facility_code` string, nullable
  - `opened_reason` string, nullable
  - `opened_note` string, nullable
  - `person_reason` string, nullable
  - `person_note` string, nullable
  - `name_on_envelope` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-24** `622d59a99fd2`: 1 info
  - added the new optional request property `name_on_envelope`
- **2026-11-10** `a0ff804a5b5c`: 2 info
  - added the new optional request property `person_note`
  - added the new optional request property `person_reason`
- **2026-11-09** `481e26961afd`: 2 info
  - added the new optional request property `opened_note`
  - added the new optional request property `opened_reason`
- **2026-11-07** `b82317e777d9`: 1 info
  - added the new optional request property `facility_code`
- **2026-11-01** `72c9729e6df2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/changes/api/intake/captures/:capture_id/patch.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)
