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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataset_def_id": "<dataset_def_id>"
},
"name": "cdp_copy_datasetdef"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_def_id | Yes | ||
| tenant_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |