---
title: "Changes to Update a stock location"
method: PATCH
path: "/stock_locations/{stockLocationId}"
---

# Changes to Update a stock location

`PATCH /stock_locations/{stockLocationId}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 11 revisions.

- **2026-07-13** `859097ed3fe6`: 2 breaking, 2 warning, 8 info

## Changes

- **2026-07-13** `859097ed3fe6`: 2 breaking, 2 warning, 8 info
  - added the new required request property `data/relationships/address/data`
  - request property `data/type` was restricted to a list of enum values
  - removed the request property `data/relationships/address/id`
  - removed the request property `data/relationships/address/type`
  - added the new optional request property `data/attributes/code`
  - the request property `data/attributes/label_format` became nullable
  - the request property `data/attributes/metadata` became nullable
  - the request property `data/attributes/reference` became nullable
  - the request property `data/attributes/reference_origin` became nullable
  - the `type` request property default value `stock_locations` was removed
  - added the new `stock_locations` 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/stock_locations/:stockLocationId/patch.md) - [API](https://skmtc.dev/commercelayer/apis/commerce-layer-api.md) - [Page](https://skmtc.dev/commercelayer/apis/commerce-layer-api/changes/stock_locations/:stockLocationId/patch)
