{"id":"json-patch-apply","version":"1.0.0","description":"Apply an RFC 6902 JSON Patch atomically; returns the document or the failing operation index and pointer.","supported_operations":["apply a JSON patch atomically","update a JSON document with patch operations","run RFC 6902 operations","apply add remove replace move copy and test","find which JSON patch operation failed","patch JSON without partial changes"],"unsupported_operations":["generate a patch between documents","modify files on disk"],"semantics":["Unrecognized operation members are ignored (RFC 6902 section 4); only the members defined for that op are interpreted. Removing the document root returns applied:false and reason root_removal_unsupported, preserving the original document: this JSON-result API cannot represent absence of a document.","Implements RFC 6902 (April 2013), Sections 4 and 5, with JSON Pointer syntax from RFC 6901 (April 2013), Sections 3 and 4.","Inputs are JSON values; object keys are compared exactly and arrays are ordered. Processing is synchronous and deterministic.","Limits are checked before or during bounded traversal; no network, filesystem, clock, locale, or randomness is used."],"limits":{"max_input_bytes":65536,"max_operations":128,"max_depth":32,"max_output_bytes":131072,"max_iterations":4096},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["document","patch"],"properties":{"document":{},"patch":{"type":"array","maxItems":128,"items":{"type":"object","additionalProperties":{"description":"Any JSON member value. RFC 6902 section 4 requires ignoring members not defined for the operation."},"description":"RFC 6902 operation map. Requires string op and JSON Pointer path; move/copy require string from; add/replace/test require value. Runtime validates these per operation and ignores other members."}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["standard_version","applied","document"],"properties":{"standard_version":{"type":"string","const":"RFC 6902 (April 2013); RFC 6901 (April 2013)"},"applied":{"type":"boolean"},"document":{},"failed_index":{"type":"integer","minimum":0,"maximum":127},"failed_pointer":{"type":"string"},"reason":{"type":"string"}}},"examples":[{"input":{"document":{"a":1},"patch":[{"op":"replace","path":"/a","value":2}]},"output":{"standard_version":"RFC 6902 (April 2013); RFC 6901 (April 2013)","applied":true,"document":{"a":2}}},{"input":{"document":{"a":1},"patch":[{"op":"test","path":"/a","value":2}]},"output":{"standard_version":"RFC 6902 (April 2013); RFC 6901 (April 2013)","applied":false,"document":{"a":1},"failed_index":0,"failed_pointer":"/a","reason":"test_failed"}}],"execute_url":"/v1/tools/json-patch-apply/versions/1.0.0/execute"}