# G-Forge Apply JSON Merge Patch

> G-Forge Apply JSON Merge Patch is a paid API for AI agents from api.getretold.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-24).

Applies RFC 7396 JSON Merge Patch rules to a target JSON value and returns the resulting patched JSON without modifying any external system.

## Facts

- Endpoint: POST https://api.getretold.com/services/agent-auto-launch-merge-patch/invoke?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/g-forge-apply-json-merge-patch-efabb50a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uaOjQseIVHJ-7f048bpDW

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 g-forge-apply-json-merge-patch-efabb50a -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "object",
   "required": [
    "target",
    "patch"
   ],
   "properties": {
    "patch": {},
    "target": {}
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/g-forge-apply-json-merge-patch-efabb50a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.getretold.com](https://www.zero.xyz/host/api.getretold.com/llms.txt)
