# Delx JSON Merge Patch

> Delx JSON Merge Patch is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

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.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/json-merge-patch
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-json-merge-patch-e3ac4d82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qz3yu6kuPUf_SDTCc8z9t

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 delx-json-merge-patch-e3ac4d82 -d '<json body>'
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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…

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "patch": {
   "type": "object",
   "description": "Input field: patch."
  },
  "target": {
   "type": "object",
   "description": "Input field: target."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "scope": "RFC 7396 top-level merge semantics",
  "result": {
   "ready": true
  },
  "schema": "delx/util-json-merge-patch/v1",
  "changed_fields": [
   "legacy",
   "ready"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-json-merge-patch-e3ac4d82/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
