Set consent
set_consentSet a participant's marketing consent for a channel (opt in / out). Upserts by (participant, channel).
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": {
"participant_id": "<participant_id>",
"opted_in": "<opted_in>"
},
"name": "set_consent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | ||
| channel | No | ||
| opted_in | Yes | ||
| participant_id | Yes |