{"uid":"cap_qz3yu6kuPUf_SDTCc8z9t","slug":"delx-json-merge-patch-e3ac4d82","name":"Delx JSON Merge Patch","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 authorizati…","url":"https://api.delx.ai/api/v1/x402/json-merge-patch","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"patch":{"type":"object","description":"Input field: patch."},"target":{"type":"object","description":"Input field: target."}}},"responseSchema":{"type":"json","example":{"scope":"RFC 7396 top-level merge semantics","result":{"ready":true},"schema":"delx/util-json-merge-patch/v1","changed_fields":["legacy","ready"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3WyBPOcMpC3xSTXp_wIyy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies bounded top-level JSON Merge Patch (RFC 7396) semantics to a target object using a patch object, returning the merged result as deterministic machine-readable JSON.","exampleAgentPrompt":"Apply this JSON merge patch — {\"status\": \"active\", \"role\": null} — to this target object {\"id\": 42, \"status\": \"pending\", \"role\": \"viewer\", \"name\": \"Alice\"} and show me the merged result.","exampleUseCases":[{"title":"Config merge preflight before deploy","prompt":"Before we push this config update to production, apply this patch {\"featureFlags\": {\"darkMode\": true}, \"timeout\": null} to our current config {\"featureFlags\": {\"darkMode\": false}, \"timeout\": 30, \"retries\": 3} and show me exactly what the merged config would look like."},{"title":"Policy document delta preview","prompt":"We're updating our access policy — apply this patch {\"allowedRoles\": [\"admin\", \"editor\"], \"deprecated\": null} to the existing policy object {\"allowedRoles\": [\"admin\"], \"deprecated\": true, \"version\": 2} so I can review the result before committing it."},{"title":"Integration schema merge check","prompt":"I need to merge a partner's partial record update {\"email\": \"new@example.com\", \"phone\": null} onto our stored user object {\"id\": \"u-99\", \"email\": \"old@example.com\", \"phone\": \"+15550001234\", \"tier\": \"gold\"} — what does the final merged object look like?"}],"resultDescription":"Returns a deterministic JSON object representing the result of applying the patch to the target using RFC 7396 JSON Merge Patch semantics — fields present in the patch overwrite or null-delete corresponding fields in the target, while unmentioned fields are preserved unchanged.","failureModes":["Invalid or non-object JSON supplied for target or patch fields — returns error indicating malformed input","Patch or target exceeds bounded size limits — may return rejection or truncation error","Network or payment authorization failure via x402 — returns 402 or payment-related error","Missing required fields (target or patch not provided) — returns schema validation error"],"whenToPreferThis":"Prefer this endpoint when you need a stateless, deterministic, zero-retention computation of JSON Merge Patch results as a preflight or dry-run step before committing changes in an enterprise or integration workflow. It is ideal when you want machine-readable merge output without involving your own runtime logic, when operating inside an agentic pipeline that pays per-call via x402 on Base, or when you need advisory merge results that keep your production system untouched. Choose alternatives if you need deep/recursive JSON Patch (RFC 6902 op arrays), schema validation beyond merging, or persistent storage of results.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:01:52.721Z","isFirstParty":false}