MISSINdevelopersLog in

API reference

UpdateIncentive

Update an incentive's name, audience, limits, status or trust floor. Write access, incentives toolset, MCP tool update_incentive.

Access: Write

Variables

VariableTypeRequiredAcceptsDescription
inputUpdateIncentiveInput!yesInput object, below

Input types

UpdateIncentiveInput

FieldTypeRequiredAcceptsDescription
audienceStringnoOne of NEW, RETURNINGNEW | RETURNING, or null for everyone. Null CLEARS the targeting.
descriptionStringnoat most 500 characters
formIdUUIDno
iconStringnoOne of megaphone, sparkles, rocket, flag, star, heart, bell, party-popper, gift, tag, ticket, percent, badge-percent, shopping-bag, shopping-cart, package, truck, store, sun, snowflake, leaf, flower, sprout, umbrella, moon, tree-pine, egg, ghost, cake, trophy, crown, gem, award, medal, calendar, calendar-heart, camera, video, clapperboard, music, mic, palette, shirt, watch, globe, map-pin, plane, users, handshake, target, trending-up, zap, flame, coffee, dumbbell, gamepad-2The incentive's own mark — a Lucide icon NAME. Null clears to the entity glyph.
iconColorStringnoOne of default, gray, brown, orange, yellow, green, blue, purple, pink, redThe mark's hue — a palette TOKEN, never a hex. Null clears to the neutral tile.
incentiveIdUUID!yes
limitCountIntno32-bit integer. 1 to 100Per-customer claim cap — patch with limitPeriod together; both null clears.
limitPeriodStringnoOne of DAY, WEEK, MONTH, EVER, ORDERDAY | WEEK | MONTH | EVER: rolling windows.
minTrustScoreFloatno0.4 to 1Hold rewards when a response's trust score is below this (MISPLAT-361). Null = never hold (the default).
nameStringno1 to 120 characters
statusStringnoOne of DRAFT, ACTIVE, PAUSED, ARCHIVED
tierStringnoOne of quick, enhanced

Call it

bash
curl https://api.missin.co.uk/graphql/v1 \
  -H "Authorization: Bearer $MISSIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"operationName":"UpdateIncentive","variables":{"input":{"incentiveId":"00000000-0000-0000-0000-000000000000"}},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"02459f0ea256d092d1f3519714bab89fc632732c181b31c664db18152038b938"}}}'

Document

graphql
mutation UpdateIncentive($input: UpdateIncentiveInput!) { __typename updateIncentive(input: $input) { __typename incentiveId userErrors { __typename code field message } } }

For AI agents: a markdown index of this site is at /llms.txt, and every page is available as markdown by adding .md to its URL.