POST api/v1/EmailBuilderCampaigns/{id}/AddBlock
Add an Email Builder Block to an Email Builder Campaign
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
ID of the EmailBuilderCampaign (Not the EmailCampaignId) |
integer |
Required |
Body Parameters
Info about the EmailBuilderBlock
CreateEmailBuilderCampaignBlockDto| Name | Description | Type | Additional information |
|---|---|---|---|
| EmailBuilderBlockId |
Id of the email builder block |
integer |
Required |
| InputValues |
Input values used by the block |
Dictionary of string [key] and EmailBuilderCampaignBlockInputValue [value] |
None. |
| Settings |
Settings used by the block |
EmailBuilderCampaignBlockSettingsDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"EmailBuilderBlockId": 1,
"InputValues": {
"sample string 1": {
"Value": "sample string 1"
},
"sample string 2": {
"Value": "sample string 1"
}
},
"Settings": {
"Condition": {
"Field": "sample string 1",
"Operator": "Equal",
"Value": "sample string 2",
"Values": [
"sample string 1",
"sample string 2"
]
}
}
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ReadEmailBuilderCampaignBlockDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Id of the EmailBuilderCampaignBlock |
integer |
None. |
| EmailBuilderCampaignId |
Id of the EmailBuilderCampaign the block belongs to |
integer |
None. |
| SortOrder |
The sort order of the block in the EmailBuilderCampaign |
integer |
None. |
| EmailBuilderBlockId |
Id of the email builder block |
integer |
Required |
| InputValues |
Input values used by the block |
Dictionary of string [key] and EmailBuilderCampaignBlockInputValue [value] |
None. |
| Settings |
Settings used by the block |
EmailBuilderCampaignBlockSettingsDto |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"EmailBuilderCampaignId": 2,
"SortOrder": 3,
"EmailBuilderBlockId": 4,
"InputValues": {
"sample string 1": {
"Value": "sample string 1"
},
"sample string 2": {
"Value": "sample string 1"
}
},
"Settings": {
"Condition": {
"Field": "sample string 1",
"Operator": "Equal",
"Value": "sample string 2",
"Values": [
"sample string 1",
"sample string 2"
]
}
}
}