campaignUpdate

Update a campaign. The campaignUpdate 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 campaignUpdate ($id: ID!, $attributes: CampaignAttributes!) {
  campaignUpdate (id: $id, attributes: $attributes) {
      campaign {
        code
        contactCount
        endDate
        id
        leadCount
        name
        ownerUserId
        startDate
      }
      errors
  }
}

Arguments

{
  "id": "456123",
  "attributes": {
    "name": "",
    "code": "",
    "startDate": "2022-06-01",
    "endDate": "2022-06-01",
    "ownerUserId": "456123"
  }
}
Name Type Description
id ID  
attributes CampaignAttributes  

Response

Name Type Description
campaign Campaign  
errors List (String)