{"uid":"cap_Ed5PEH_r7aPHfc6vMqyLT","slug":"loyal-spark-update-program-config-b674bfa7","name":"Loyal Spark Update Program Config","description":"Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes, customers earn real value with every purchase, and AI agents automate the rest via REST and MCP. Free plan mints up to 1,000 tokens per month; every call is scoped by row-level security to the wallet behind the API key. 16 skill guides at loyalspark.online/.well-known/skills/index.md.","url":"https://api.loyalspark.online/x402-gateway/update-program-config","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{}}},"inputSchema":{"type":"object"}}},"responseSchema":{"type":"json","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema"},"description":"JSON from Loyal Spark agent-api or recipient-api. See OpenAPI for response shape."},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PibXMcqG1Z_OMatpHx61n","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Updates the configuration settings of an onchain loyalty rewards program on Base L2","exampleAgentPrompt":"Update my Loyal Spark loyalty program config on Base — change the reward multiplier and redemption rules for my rewards program.","exampleUseCases":[{"title":"Seasonal reward rate adjustment","prompt":"Update my onchain loyalty program settings on Base to double the reward rate for the holiday season and make sure customers can only redeem points above a 500 token threshold."},{"title":"Reconfigure redemption rules","prompt":"Change my Loyal Spark program config so that redemptions are restricted to once per week per customer and the minimum basket size for earning rewards is raised to $25."},{"title":"Rebrand loyalty program parameters","prompt":"I just rebranded my store — update my Loyal Spark rewards program on Base with the new program name, adjust the token earn rate to 2x per dollar spent, and disable the old bonus tier rules."}],"resultDescription":"Returns a JSON object with a boolean 'ok' field indicating success and the resource name 'update-program-config', confirming the program configuration was updated.","failureModes":["Missing required body fields returns a validation error","Invalid method type other than POST/PUT/PATCH returns an error","Insufficient USDC balance to cover the $0.005 per-call fee blocks execution","Malformed JSON body causes a parse error","Unauthorized access to a program not owned by the caller returns a 403"],"whenToPreferThis":"Use this endpoint when you need to programmatically modify an existing Loyal Spark onchain loyalty program's configuration on Base L2, such as updating reward rates, redemption rules, or program parameters via an AI agent or automated workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:43:46.425Z","isFirstParty":false}