W056: Update customer segment
Renames an existing segment. Triggered from Settings, Customer segments. Same shape as W051.
Steps
-
Load the segment.
-
Check name uniqueness if changed.
-
Apply the patch. Call
Customers.updateCustomerSegment.
Returns
The updated segment row.
Business rules
- Renames preserve history.
Errors
NotFoundError. The segment was not found.ValidationError. Name collision.