---
title: "Clear Orphaned Expenditure Apportionments"
method: POST
path: "/claims/{claim_id}/expenditures/orphaned-apportionments/clear"
tags: ["expenditures"]
---

# Clear Orphaned Expenditure Apportionments

`POST /claims/{claim_id}/expenditures/orphaned-apportionments/clear`

## Request

- Base URL: `https://api.claimkit.co` (the document declares no server; this is the origin it was published from)
- URL: `https://api.claimkit.co/claims/{claim_id}/expenditures/orphaned-apportionments/clear`
- Auth: none declared

Remove legacy-orphan allocations from every live expense, employee
salary split and depreciating asset on the claim.

Valid current-tree allocations on a partially orphaned split are preserved.
An expense with no allocation left returns to the standard unassigned /
non-R&D state. Linked refunds are refreshed from their originals through
the normal inheritance mirror.

## Path parameters

- `claim_id` integer, required

## Response `200`

Successful Response

- ClearOrphanedExpenditureApportionmentsResponse
  - `updated_count` integer, required
  - `removed_apportionment_count` integer, required
  - `updated_salary_count` integer
  - `updated_asset_count` integer

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/claimkit/apis/claimkit-api.md) - [All operations](https://skmtc.dev/claimkit/apis/claimkit-api/llms.txt) - [OpenAPI document](https://skmtc.dev/claimkit/apis/claimkit-api/revisions/94dc85ba5326?raw)
