Skip to content
gist.link ↗

scheduleCampaign

Mutation Campaigns API — POST https://campaigns.api.gist.link/graphql

Schedules a campaign to send at a future time. ROLE_ADMIN or ROLE_CAMPAIGNS_MANAGER.

campaigns:mutation:scheduleCampaign

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

type Mutation {
scheduleCampaign(id: String!, at: String!): Campaign!
}
Argument Type Required Description
id String! Yes —
at String! Yes —

Campaign! — see the Campaigns types reference.

Terminal window
curl https://campaigns.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation ScheduleCampaign($id: String!, $at: String!) { scheduleCampaign(id: $id, at: $at) { id name status type created_at updated_at } }",
"variables": {
"id": "example",
"at": "example"
}
}
JSON