update_audience
Update an audience's details including name, conditions, and matching mode. Validate changes with dry_run, then confirm to apply.
Instructions
Updates an audience (user list): PATCH /api/v1/projects/:projectId/audiences/:audienceId. Body matches CreateOrUpdateAudienceDto: name (required), optional conditions[] (signature + parameters), condition_match_mode "any"|"all" (required if conditions non-empty), contractId. dry_run then confirmed. Example dry_run: {"project_id":"","audience_id":"","name":"VIP","dry_run":true}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, validate and return a preview only; no server mutation. | |
| confirmed | No | Must be true to perform the mutation after reviewing dry_run output. | |
| project_id | Yes | ||
| audience_id | Yes | ||
| name | Yes | ||
| conditions | No | ||
| condition_match_mode | No | Required when conditions is non-empty. | |
| contractId | No |