MISSINdevelopersLog in

API reference

ReplaceIncentiveRules

Replace an incentive's rules; the old ones are not kept. Irreversible. Write access, incentives toolset, MCP tool replace_incentive_rules.

Access: Write

Variables

VariableTypeRequiredAcceptsDescription
inputReplaceIncentiveRulesInput!yesInput object, below

Input types

ReplaceIncentiveRulesInput

FieldTypeRequiredAcceptsDescription
incentiveIdUUID!yes
rulesJSON!yesAny JSON value. at most 3 items

Call it

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

Document

graphql
mutation ReplaceIncentiveRules($input: ReplaceIncentiveRulesInput!) { __typename replaceIncentiveRules(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.