{
  "format": "delx/intent-card/v1",
  "id": "json-merge-patch-api",
  "intent": "JSON Merge Patch for an agent workflow",
  "title": "JSON Merge Patch API for agents",
  "description": "Apply bounded top-level JSON Merge Patch semantics for integration planning. Use it as a bounded preflight or analysis step inside an enterprise agent workflow before data, policy, integration, security, or commercial decisions reach production. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, memory-only, and has no paid upstream or input retention. Results are advisory; the caller remains responsible for authorization and production controls.",
  "keywords": [
    "JSON Merge Patch API",
    "JSON Merge Patch for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/json-merge-patch-api",
  "machine_url": "https://commerce.delx.ai/intents/json-merge-patch-api.json",
  "recommendation": {
    "tool_name": "util_json_merge_patch",
    "service_name": "Delx JSON Merge Patch",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/json-merge-patch",
    "price_usdc": "0.003",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "target": {
          "description": "Input field: target.",
          "type": "object"
        },
        "patch": {
          "description": "Input field: patch.",
          "type": "object"
        }
      },
      "required": [
        "target",
        "patch"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "target": {
        "ready": false,
        "legacy": true
      },
      "patch": {
        "ready": true,
        "legacy": null
      }
    },
    "example_output": {
      "schema": "delx/util-json-merge-patch/v1",
      "result": {
        "ready": true
      },
      "changed_fields": [
        "legacy",
        "ready"
      ],
      "scope": "RFC 7396 top-level merge semantics"
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/json-merge-patch -m POST -H 'x-delx-source: intent-card-json-merge-patch-api' --max-amount 0.003 -b '{\"target\":{\"ready\":false,\"legacy\":true},\"patch\":{\"ready\":true,\"legacy\":null}}'",
      "max_amount_usdc": "0.003"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-json-merge-patch-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/json-merge-patch"
  }
}
