campaignCreate
Create a campaign. The campaignCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: standard:write
For a complete list of input attributes see the CampaignAttributes type
mutation campaignCreate ($attributes: CampaignAttributes!) {
campaignCreate (attributes: $attributes) {
campaign {
code
contactCount
endDate
id
leadCount
name
ownerUserId
startDate
}
errors
}
}
ArgumentsLink to Arguments section
{
"attributes": {
"name": "",
"code": "",
"startDate": "2022-06-01",
"endDate": "2022-06-01",
"ownerUserId": "456123"
}
}
| Name | Type | Description |
|---|---|---|
| attributes | CampaignAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| campaign | Campaign | |
| errors | List (String) |