Overview / Stock & supply / Update a warehouse

Update a warehouse

patch https://api.flactrum.com/v1/warehouses/{warehouse}
Required scope warehouses.write
Success status200
Returns One Warehouse object

Parameters

NameInTypeDescription
warehouse * path string ULID of the record.

Request body

FieldTypeDescription
name * string —
code string|null Unique within the brand.
address string|null —
phone string|null —
region string|null —
is_active boolean —

Response fields

FieldTypeDescription
id string —
name string —
code string|null —
address string|null —
phone string|null —
region string|null —
is_active boolean —

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X PATCH 'https://api.flactrum.com/v1/warehouses/01m43mzk7wcn9xm2q8hszmgf4k' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "region": "Marmara"
}'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43mzk7wcn9xm2q8hszmgf4k",
        "name": "Merkez depo",
        "code": "MRK",
        "address": null,
        "phone": null,
        "region": "Marmara",
        "is_active": true,
        "created_at": "2026-10-04T14:27:12+00:00",
        "updated_at": "2026-10-04T14:27:12+00:00"
    }
}