Update a Segment
Update an existing segment by id. The full segment definition is replaced - this is NOT a partial update. Send the complete name, match, rules (and optional lists) on every call.
On success, the segment’s active_count is recomputed asynchronously. GET /v1/segments/{id} will return count_status: pending until the recount finishes (seconds to minutes), then ready.
Field vocabulary, operator families, and value shapes match the create endpoint - see POST /v1/segments for the full reference.
Authorizations
Your Mailercloud API key (plain text, no Bearer prefix). Create keys in Settings → API.
Headers
Request body type
Path Parameters
Segment ID to update.
Body
Segment display name. Must be unique within the account.
Minimum: 1 Maximum: 100
1 - 100How rules combine.
all: every rule must match (AND) any: at least one rule must match (OR)
Supported values: all, any
all, any Filter rules. At least one rule is required. The full rule set replaces the existing rules - to keep a rule, include it in this array.
1Optional. Restrict the segment to contacts in these lists. Provide list names (cid-scoped). Maximum 150 lists. Pass an empty array to clear the list restriction.
150Response
OK