Skip to content

Commit

Permalink
Update content/docs/faq/cc-bcc-with-rest-api.md
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Gray <40871530+mtgray-sp@users.noreply.github.com>
  • Loading branch information
amalco2 and mtgray-sp authored Oct 16, 2024
1 parent 0eb8664 commit 80b693a
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions content/docs/faq/cc-bcc-with-rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,40 +159,42 @@ One method is to use substitution data for your templates that you want to have

Then, for the transmission, set the substitution data for the CC:

```
```json
{
"options" : {
"open_tracking" : true,
"click_tracking" : true,
"conversion_tracking" : false,
"options": {
"open_tracking": true,
"click_tracking": true,
"transactional": true
},
"campaign_id" : "mycampaign-msys",
"return_path" : "you@bounce.fromyou.com",
"header_from" : "Single Recipient",
"metadata" : {
"campaign_id": "mycampaign-msys",
"return_path": "you@bounce.fromyou.com",
"header_from": "Single Recipient",
"metadata": {
"key": "value"
},
"recipients" : [
"recipients": [
{
"address" : {
"address": {
"email": "to@thisperson.com"
},
"tags" : [
"greeting", "prehistoric", "fred", "flintstone"
],
"header_to" : "Wilma Flintstone",
"metadata" : {
"place" : "Bedrock",
"host" : "google.com"
"tags": [
"greeting",
"prehistoric",
"fred",
"flintstone"
],
"header_to": "Wilma Flintstone",
"metadata": {
"place": "Bedrock",
"host": "google.com"
}
}
],
"substitution_data": {
"cc_data": "cc@thatperson.com"
"cc_data": "cc@thatperson.com"
},
"content" : {
"template_id": "cc_template_3"
"content": {
"template_id": "cc_template_3"
}
}
```

0 comments on commit 80b693a

Please sign in to comment.