---
title: "Changes to Update a line item"
method: PATCH
path: "/line_items/{lineItemId}"
---

# Changes to Update a line item

`PATCH /line_items/{lineItemId}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 2 of 11 revisions.

- **2026-10-08** `71dbd5f83326`: 1 info
- **2026-07-13** `859097ed3fe6`: 1 breaking, 21 info

## Changes

- **2026-10-08** `71dbd5f83326`: 1 info
  - added the optional property `data/relationships/attachments` to the response with the `200` status
- **2026-07-13** `859097ed3fe6`: 1 breaking, 21 info
  - request property `data/type` was restricted to a list of enum values
  - added the new optional request property `data/attributes/_add_tags`
  - added the new optional request property `data/attributes/_external_price`
  - added the new optional request property `data/attributes/_remove_tags`
  - added the new optional request property `data/attributes/_reserve_stock`
  - added the new optional request property `data/attributes/_reset_circuit`
  - added the new optional request property `data/attributes/_reset_restocked_quantity`
  - added the new optional request property `data/attributes/compare_at_amount_cents`
  - added the new optional request property `data/attributes/frequency`
  - added the new optional request property `data/attributes/options_amount_cents`
  - added the new optional request property `data/attributes/unit_amount_cents`
  - added the new optional request property `data/relationships/tags`
  - the request property `data/attributes/bundle_code` became nullable
  - the request property `data/attributes/image_url` became nullable
  - the request property `data/attributes/metadata` became nullable
  - the request property `data/attributes/name` became nullable
  - the request property `data/attributes/reference` became nullable
  - the request property `data/attributes/reference_origin` became nullable
  - the request property `data/attributes/sku_code` became nullable
  - the `type` request property default value `line_items` was removed
  - added the new `line_items` enum value to the request property `data/type`
  - added the media type `application/vnd.api+json` for the response with the status `200`

---

[Operation](https://skmtc.dev/commercelayer/apis/commerce-layer-api/docs/line_items/:lineItemId/patch.md) - [API](https://skmtc.dev/commercelayer/apis/commerce-layer-api.md) - [Page](https://skmtc.dev/commercelayer/apis/commerce-layer-api/changes/line_items/:lineItemId/patch)
