Skip to content
gist.link ↗

launchSegmentCampaign

Mutation CRM API — POST https://crm.api.gist.link/graphql

Provision a campaigns audience from a segment; returns a deep link into the campaigns app.

crm:mutation:launchSegmentCampaign

The calling IAM key must hold this permission (or a wildcard that covers it: crm:mutation:* or crm:*) and the access token must have been minted with audience=crm. See Permissions.

type Mutation {
launchSegmentCampaign(uuid: ID!, name: String): SegmentCampaignLaunch!
}
Argument Type Required Description
uuid ID! Yes —
name String No —

SegmentCampaignLaunch! — see the CRM types reference.

Terminal window
curl https://crm.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation LaunchSegmentCampaign($uuid: ID!, $name: String) { launchSegmentCampaign(uuid: $uuid, name: $name) { audienceId estimatedSize campaignsUrl } }",
"variables": {
"uuid": "01a01234-abcd-7000-9000-0123456789ab",
"name": "Example"
}
}
JSON