{"uid":"cap_uaOjQseIVHJ-7f048bpDW","slug":"g-forge-apply-json-merge-patch-efabb50a","name":"G-Forge Apply JSON Merge Patch","description":"Preview a JSON configuration update without changing an external system. Apply RFC 7396 merge-patch rules to a supplied target: merge object members recursively, delete members set to null, and replace the target for nonobject patches. Returns the patched JSON value only.","url":"https://api.getretold.com/services/agent-auto-launch-merge-patch/invoke?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"object","required":["target","patch"],"properties":{"patch":{},"target":{}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_riDuX-f2YsYOtRcFq3mjV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies RFC 7396 JSON Merge Patch rules to a target JSON value and returns the resulting patched JSON without modifying any external system.","exampleAgentPrompt":"Apply this merge patch to my config — target is {\"host\":\"localhost\",\"port\":8080,\"debug\":true} and patch is {\"port\":9090,\"debug\":null} — and show me what the result looks like.","exampleUseCases":[{"title":"Preview config update before deployment","prompt":"I want to see what my server config will look like after the update — target is {\"host\":\"prod.example.com\",\"port\":443,\"tls\":true,\"debug\":false} and the patch is {\"port\":8443,\"debug\":null}. Show me the result without actually changing anything."},{"title":"Merge API response with override fields","prompt":"Take this JSON object {\"name\":\"Alice\",\"role\":\"viewer\",\"active\":false} and merge in this patch {\"role\":\"admin\",\"active\":true} using RFC 7396 rules — what does the merged result look like?"},{"title":"Remove fields via null patch","prompt":"I need to strip the 'metadata' and 'internalId' fields from this JSON — target is {\"id\":\"abc123\",\"name\":\"Widget\",\"metadata\":{},\"internalId\":\"xyz\"} — can you apply a null-delete patch to remove those two fields and show me what's left?"}],"resultDescription":"Returns the patched JSON value resulting from applying RFC 7396 merge-patch rules: object members are merged recursively, members set to null in the patch are deleted from the result, and non-object patches replace the target entirely. No external state is modified.","failureModes":["Missing 'target' or 'patch' field in the request body returns a validation error","Malformed JSON input causes a parse error response","Non-JSON-serializable values may be rejected","Network timeout for unusually large payloads"],"whenToPreferThis":"Choose this endpoint when you need a stateless, side-effect-free preview of a JSON Merge Patch (RFC 7396) operation — especially useful for validating configuration changes before applying them to a live system, or when your workflow needs to compute the result of a partial JSON update without any external write. Prefer this over a full JSON Patch (RFC 6902) tool when your patch document uses the simpler merge-patch format rather than operation arrays.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:34:10.731Z","isFirstParty":false,"canonicalSlug":"g-forge-apply-json-merge-patch-efabb50a"}