---
title: "Add a line item to a claim"
method: PATCH
path: "/api/v1/claims/{claimId}/line-items"
tags: ["Claims"]
---

# Add a line item to a claim

`PATCH /api/v1/claims/{claimId}/line-items`

## Request

- Base URL: `http://localhost:8090`
- URL: `http://localhost:8090/api/v1/claims/{claimId}/line-items`
- Auth: none declared

## Path parameters

- `claimId` string, uuid, required

## Request body

- LineItemRequestBody: line item data
  - `id` string, uuid: The unique ID for the line item
  - `title` string: The title of the line item
  - `category` string: The category of the line item
  - `date` string, date: The date of the line item

## Response `201`

Line item added to claim successfully

- AddLineItemResponse
  - `id` string, uuid

## Other responses

- `400`: Invalid request body
- `403`: Forbidden

## Changes

- **2026-07-13** `5687569af02f`: 1 info
  - added the new optional request property `id`
- **2026-07-13** `693b485f81be`: 1 breaking, 1 info
  - the `id` response's property type changed from `integer` to `string`, and format from `int64` to `uuid` for status `201`
  - for the `path` request parameter `claimId`, the type was generalized from `integer` to `string`, and format from `int64` to `uuid`
- **2026-05-18** `a0c2063407bb`: 1 breaking, 3 info
  - removed the success response with the status `204`
  - added the non-success response with the status `400`
  - removed the non-success response with the status `404`
  - added the success response with the status `201`
- **2026-05-14** `def1cfa2791d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ministryofjustice/apis/ministry-of-justice-stub-civil-claims-api/changes/api/v1/claims/:claimId/line-items/patch.md)

---

[API](https://skmtc.dev/ministryofjustice/apis/ministry-of-justice-stub-civil-claims-api.md) - [All operations](https://skmtc.dev/ministryofjustice/apis/ministry-of-justice-stub-civil-claims-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ministryofjustice/apis/ministry-of-justice-stub-civil-claims-api/revisions/2380e2ea7c1d?raw)
