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
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such location. |
| 422 | validation_failed | Shape invalid. |
Workflow
Calls W094 Update location.