---
title: "Update a link"
method: PATCH
path: "/links/{linkId}"
tags: ["links"]
---

# Update a link

`PATCH /links/{linkId}`

Update a link

## Path parameters

- `linkId` string, required

## Response `200`

The updated link object

## Changes

- **2026-08-25** `8c992528cc87` — 3 info
  - added the new optional request property `data/relationships/item/oneOf[#/components/schemas/order]/data/attributes/formatted_subtotal_after_discount`
  - added the new optional request property `data/relationships/item/oneOf[#/components/schemas/order]/data/attributes/subtotal_after_discount_cents`
  - added the new optional request property `data/relationships/item/oneOf[#/components/schemas/order]/data/attributes/subtotal_after_discount_float`

[Change history](https://skmtc.dev/commercelayer/apis/commerce-layer-api/changes/links/:linkId/patch.md)

---

[API](https://skmtc.dev/commercelayer/apis/commerce-layer-api.md) · [All operations](https://skmtc.dev/commercelayer/apis/commerce-layer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/commercelayer/commerce-layer-api/revisions/8c992528cc87/schema)
