Overview / Operations / Update a branch

Update a branch

patch https://api.flactrum.com/v1/branches/{branch}

Partial update: only the fields you send change.

Required scope branches.write
Success status200
Returns One Branch object

Parameters

NameInTypeDescription
branch * path string ULID of the record.

Request body

FieldTypeDescription
name * string —
code string|null Must be unique within the brand.
address string|null —
phone string|null —
city string|null —
region string|null —
is_active boolean —
opened_at string|null —
monthly_rent number|null —
latitude number|null Send together with longitude.
longitude number|null Send together with latitude.
working_hours object Opening hours per weekday, keyed 1 (Monday) to 7 (Sunday): {"1": {"opens": "09:00", "closes": "22:00"}}. A missing day is closed; an empty object means open around the clock. A closing time earlier than the opening time crosses midnight. Kiosks in the branch show a closed screen outside these hours.

Response fields

FieldTypeDescription
id string ULID.
name string —
code string|null Unique within the brand. Useful as your own reference key.
city string|null —
region string|null Region name used for regional-manager scoping.
address string|null —
phone string|null —
is_active boolean —
opened_at string|null The date the branch opened for business, not a daily hour.
monthly_rent number|null Monthly rent; the branch analysis spreads it over the days.
latitude number|null —
longitude number|null —
working_hours object Opening hours per weekday, keyed 1 (Monday) to 7 (Sunday): {"1": {"opens": "09:00", "closes": "22:00"}}. A missing day is closed; an empty object means open around the clock. A closing time earlier than the opening time crosses midnight. Kiosks in the branch show a closed screen outside these hours.
created_at string —
updated_at string —

Examples

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

curl -X PATCH 'https://api.flactrum.com/v1/branches/01m43mxk64pgzjj1z9vhn4d3sd' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "phone": "+90 212 111 11 11"
}'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43mxk64pgzjj1z9vhn4d3sd",
        "name": "Nişantaşı",
        "code": "NIS",
        "city": "İstanbul",
        "region": "Bölge 3",
        "address": null,
        "phone": "+90 212 111 11 11",
        "is_active": true,
        "opened_at": null,
        "monthly_rent": null,
        "latitude": null,
        "longitude": null,
        "working_hours": [],
        "created_at": "2026-10-04T14:26:07+00:00",
        "updated_at": "2026-10-04T14:26:07+00:00"
    }
}