---
title: "Settle one item of held work"
method: POST
path: "/accountant/companies/{customerId}/agent/findings/{findingId}/held/{heldItemId}/settle"
tags: ["Accountant Portal"]
---

# Settle one item of held work

`POST /accountant/companies/{customerId}/agent/findings/{findingId}/held/{heldItemId}/settle`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/agent/findings/{findingId}/held/{heldItemId}/settle`
- Auth: HTTP bearer

Agent key only. `already_settled` is accepted only when the API itself sees the subject settled (409 `AGENT_HELD_NOT_SETTLED` otherwise). `abandoned_by_label` (any item but a company) and `released_by_label` (a company held by the integrity watch) need the GitHub event id of the label and when it was added (`githubEventAt`): a label acts only on items held before it, and an event already used for an earlier release of the finding never acts again (409 `AGENT_LABEL_EVENT_STALE`). Refused with 403 `AGENT_PHI_RESTRICTED` for a patient-data-restricted company. Mounted only when the deployment enables the bookkeeping agent (default off); otherwise 404. The shared cloud-bookkeeping service token gets 404 here.

## Path parameters

- `customerId` string, uuid, required
- `findingId` string, uuid, required
- `heldItemId` string, uuid, required

## Request body

- object
  - `reason` 'already_settled' | 'abandoned_by_label' | 'released_by_label', required
  - `githubEventId` integer
  - `githubEventAt` string, date-time

## Response `200`

Success envelope

- object

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Not held, not settled, a stale label event, or the agent is disabled or stopped
- `422`: Validation failed, or the reason does not fit the item

## Changes

- **2026-10-29** `e1fc804546d3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/agent/findings/:findingId/held/:heldItemId/settle/post.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
