E057: Delete customer segment
DELETE /api/customer-segments/:id
Removes a segment that no customer references. Triggered from Settings, Customer segments. Same shape as W052.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Admin.
Request
No body.
Response — 200 OK
{ "deletedId": "uuid" }
Echo of the deleted segment's id.
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such segment. |
| 409 | in_use | Customers reference this segment. |
Workflow
Calls W057 Delete customer segment.