---
title: "Set Item Apportionments"
method: PUT
path: "/claims/{claim_id}/expenditures/items/{item_id}/apportionments"
tags: ["expenditures"]
---

# Set Item Apportionments

`PUT /claims/{claim_id}/expenditures/items/{item_id}/apportionments`

## 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/items/{item_id}/apportionments`
- Auth: none declared

Replace the full R&D-activity apportionment for one item.

Each entry's ``percentage`` is that activity's R&D portion of the item; the
list may sum to <= 100 (any remainder is non-R&D). An empty list clears the
apportionment, sending the item back to the Ungrouped / non-R&D bucket. The
item's cached ``rd_percentage`` / ``eligibility`` / ``activity_id`` are kept
in sync. Salary rows use the dedicated Salary-tab editor, not this
mixed-item endpoint.

## Path parameters

- `claim_id` integer, required
- `item_id` integer, required

## Request body

- SetItemApportionmentsRequest: Replace-all list of per-activity R&D allocations for one item.
  - `apportionments` ItemApportionmentInput[], required
    - `activity_id` integer, required
    - `percentage` union, required
      - number
      - string

## Response `200`

Successful Response

- ItemResponse
  - `id` integer, required
  - `import_id` integer, nullable, required
  - `source_sheet` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `note` string, nullable
  - `source_amount` number, nullable, required
  - `source_date` string, nullable, required
  - `source_account_code` string, nullable, required
  - `source_account_name` string, nullable
  - `source_employee_name` string, nullable, required
  - `source_department` string, nullable, required
  - `source_tax_amount` number, nullable
  - `category` string, nullable, required
  - `subgroup_key` string, nullable, required
  - `activity_id` integer, nullable, required
  - `eligibility` string, required
  - `rd_percentage` number, nullable, required
  - `rd_amount` number, nullable, required
  - `manual_override` boolean, required
  - `manual_override_by_admin` boolean, nullable
  - `auto_categorised` boolean
  - `import_source_type` string, nullable
  - `open_query_count` integer
  - `apportionments` ApportionmentOut[]
    - `activity_id` integer, required
    - `activity_name` string, nullable
    - `percentage` number, required
  - `refund_of_item_id` integer, nullable
  - `refund_of_item_name` string, nullable
  - `distribution_linked` boolean
  - `distribution_link_source` string, nullable
  - `distribution_scope` string, nullable

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