---
title: "Update an attachment"
method: PATCH
path: "/attachments/{attachmentId}"
tags: ["attachments"]
---

# Update an attachment

`PATCH /attachments/{attachmentId}`

Update an attachment

## Path parameters

- `attachmentId` string, required

## Response `200`

The updated attachment object

## Changes

> 3 revisions in range; 1 could not be searched.

- **2026-07-21** `dcb0faa48534` — 10 info
  - added the new optional request property `data/relationships/attachable/oneOf[#/components/schemas/market]/data/relationships/tax_calculator/oneOf[#/components/schemas/externalTaxCalculator]/data/attributes/type`
  - added the new optional request property `data/relationships/attachable/oneOf[#/components/schemas/market]/data/relationships/tax_calculator/oneOf[#/components/schemas/manualTaxCalculator]/data/attributes/type`
  - added the new optional request property `data/relationships/attachable/oneOf[#/components/schemas/market]/data/relationships/tax_calculator/oneOf[#/components/schemas/stripeTaxAccount]/data/attributes/type`
  - added the new optional request property `data/relationships/attachable/oneOf[#/components/schemas/market]/data/relationships/tax_calculator/oneOf[#/components/schemas/taxjarAccount]/data/attributes/type`
  - …6 more

[Change history](https://skmtc.dev/commercelayer/apis/commerce-layer-api/changes/attachments/:attachmentId/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)
