# Loyal Spark Update Program Config

> Loyal Spark Update Program Config is a paid API for AI agents from api.loyalspark.online, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Updates the configuration settings of an onchain loyalty rewards program on Base L2

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/update-program-config
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loyal-spark-update-program-config-b674bfa7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ed5PEH_r7aPHfc6vMqyLT

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability loyal-spark-update-program-config-b674bfa7 -d '<json body>'
```

Example prompt: Update my Loyal Spark loyalty program config on Base — change the reward multiplier and redemption rules for my rewards program.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

Returns a JSON object with a boolean 'ok' field indicating success and the resource name 'update-program-config', confirming the program configuration was updated.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loyal-spark-update-program-config-b674bfa7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.loyalspark.online](https://www.zero.xyz/host/api.loyalspark.online/llms.txt)
