update_segment
Update a Mailchimp segment's name or dynamic filter conditions. Modifies only provided fields; cannot change between static and dynamic types.
Instructions
Update a segment's name or dynamic filter conditions.
Only provided fields are updated. Idempotent: re-applying the same name is safe. Cannot change a segment from static to dynamic or vice versa. Use add_members_to_segment or remove_members_from_segment to manage static segment membership instead.
Authenticated via API key. Max 10 concurrent requests. Respects read-only and dry-run modes. Returns 404 error if segment_id is invalid. Providing match without conditions_json is ignored.
Args: list_id: Audience/list ID (10-char alphanumeric, e.g. 'abc123def4'). Obtain from list_audiences. segment_id: Segment ID to update (numeric string, e.g. '12345'). Obtain from list_segments. name: New display name for the segment. match: Condition match type for dynamic segments: 'all' (AND) or 'any' (OR). Must be provided together with conditions_json. conditions_json: JSON string of conditions array. Must be provided with match.
Returns: JSON with id, name, member_count, type ('static'/'saved'), options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes | ||
| segment_id | Yes | ||
| name | No | ||
| match | No | ||
| conditions_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |