Skip to main content
Version: v1.0.0(int)

E094: Update location

PATCH /api/locations/:id

Edits a location's header fields, including its sort order. Triggered from Settings, Fulfillment locations.

Authentication

Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Admin.

Request

{ "name": "...", "address": "...", "isActive": true }

Passing isActive archives (false) or reactivates (true) the location; all fields are optional. Code immutable.

Response — 200 OK

{ "id": "uuid", "code": "WH-1", "name": "...", "address": "...", "createdAt": "..." }

Errors

HTTPcodeCondition
404not_foundNo such location.
422validation_failedShape invalid.

Workflow

Calls W094 Update location.