E056: Update customer segment
PATCH /api/customer-segments/:id
Renames an existing segment. Triggered from Settings, Customer segments. Same shape as W051.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Admin.
Request
{ "name": "Northeast", "displayOrder": 1, "isActive": true }
Passing isActive archives (false) or reactivates (true) the customer segment; all fields are optional.
Response — 200 OK
{ "id": "uuid", "name": "Northeast", "displayOrder": 1 }
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such segment. |
| 422 | validation_failed | Duplicate name. |
Workflow
Calls W056 Update customer segment.