Skip to content
gist.link ↗

createCreative

Mutation Marketing API — POST https://marketing.api.gist.link/graphql

Create a creative. ROLE_ADMIN or ROLE_MARKETING_MANAGER.

marketing:mutation:createCreative

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

type Mutation {
createCreative(input: CreateCreativeInput!): Creative!
}
Argument Type Required Description
input CreateCreativeInput! Yes —

Creative! — see the Marketing types reference.

Terminal window
curl https://marketing.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation CreateCreative($input: CreateCreativeInput!) { createCreative(input: $input) { id organizationId name headline body mediaUrls landingUrl createdAt } }",
"variables": {
"input": {
"name": "Example"
}
}
}
JSON