Skip to content
gist.link ↗

updateCreative

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

Update a creative. ROLE_ADMIN or ROLE_MARKETING_MANAGER.

marketing:mutation:updateCreative

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 {
updateCreative(id: ID!, input: UpdateCreativeInput!): Creative!
}
Argument Type Required Description
id ID! Yes —
input UpdateCreativeInput! 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 UpdateCreative($id: ID!, $input: UpdateCreativeInput!) { updateCreative(id: $id, input: $input) { id organizationId name headline body mediaUrls landingUrl createdAt } }",
"variables": {
"id": "01a01234-abcd-7000-9000-0123456789ab",
"input": {
"name": "Example",
"headline": "example",
"body": "example"
}
}
}
JSON