cdp_copy_datasetdef
Create a new independent dataset definition by copying an existing one to avoid CDP campaign errors when reusing shared definitions.
Instructions
Copy an existing datasetDef (audience definition) to create a new, independent one. CDP rejects shared datasetDefs across campaigns with E400: 'The campaignDef being created refers to an existing datasetDef. Please correct this by calling /v2/{tenantId}/datasetDef/{id}?action=copy'. Use this tool to produce a detached copy, then embed the returned object inline in your new campaign's audience field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_def_id | Yes | ||
| tenant_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |