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

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

HTTPcodeCondition
404not_foundNo such segment.
422validation_failedDuplicate name.

Workflow

Calls W056 Update customer segment.