campaignCreate

Graphql fields and variables for the campaignCreate mutation

Create a campaign

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
  }
}

Arguments

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

Response

Name
Type
Description

campaign

errors

List (String)

Last updated

Was this helpful?