Duplicate Audience
duplicate_audienceCreate a duplicate of an existing audience with lineage tracking (parent_audience_id + derived_from root ancestor, segment versions pinned at duplicate time). The duplicate carries the source composition (segment_ids, excluded_segment_ids, set_logic), is immediately active, and starts with record_count null — call recount_audience for a fresh count. Optionally link the duplicate to a campaign. Requires 'creator' scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the duplicate. Defaults to "<source name> (copy)" | |
| audience_id | Yes | ID of the audience to duplicate | |
| campaign_id | No | Optional campaign to link the duplicate to |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| status | Yes | ||
| guidance | No | Interpretation or recovery guidance for this result | |
| set_logic | No | How included segments combine; excluded segments always subtract | |
| count_unit | No | ||
| page_count | No | Number of objects on this page, not the organization total | |
| audience_id | Yes | ||
| campaign_id | No | ||
| count_state | No | Unknown means no count; available does not guarantee freshness. Recount for a current value. | |
| segment_ids | Yes | ||
| next_actions | No | Suggested next calls using returned IDs and available scopes. Not executed and not user consent. | |
| record_count | No | Saved composition count; null is unknown. Use recount_audience for a current value. | |
| money_display | No | Currency amounts formatted once from source paths ending in _cents. Use verbatim; do not divide again. Null/missing source amounts are omitted, not zero. | |
| population_input | No | Population input used for the preview; IDs refer to their current saved definitions | |
| excluded_segment_ids | Yes |