Commit an array of patches (unwrapped body)
const url = 'http://localhost:8090/v1/patches/batch';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '[{"patchId":"example","actor":"example","timestamp":"2026-04-15T12:00:00Z","source":{"uri":"example","sourceHash":"example","extractor":"example","sourceType":"example","workspaceId":"example"},"baseRev":1,"ops":[{"type":"UpsertNode","id":"example","kind":"file","name":"example","attrs":{}}],"replaces":["example"],"intent":"example"}]'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8090/v1/patches/batch \ --header 'Content-Type: application/json' \ --data '[ { "patchId": "example", "actor": "example", "timestamp": "2026-04-15T12:00:00Z", "source": { "uri": "example", "sourceHash": "example", "extractor": "example", "sourceType": "example", "workspaceId": "example" }, "baseRev": 1, "ops": [ { "type": "UpsertNode", "id": "example", "kind": "file", "name": "example", "attrs": {} } ], "replaces": [ "example" ], "intent": "example" } ]'Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Workspace-relative path; opaque join key
SHA-256 of the workspace root path
One op in a graph patch, told apart by type.
Create or replace a node. attrs is an open map. Symbol and file nodes
carry line_start / line_end / language / role; chunk nodes carry
file_uri, chunk_kind, start_line / end_line, start_byte /
end_byte, content_hash and parser_version.
object
Every node kind a patch from the ix CLI writes. Symbol nodes come from
the parser, which writes struct, enum, record, union, impl, type alias
and annotation definitions as class.
object
Create or replace an edge. attrs is an open map; an edge resolved to
another file carries confidence and tier.
object
Source node id
Destination node id
Every edge predicate a patch from the ix CLI writes. EXTENDS covers
both a base class and an implemented interface; there is no
IMPLEMENTS predicate.
object
Retire a node by id.
object
Retire an edge by id.
object
Assert a fact about a node, for the confidence and conflict engine.
object
<predicate in lower case>:<target name>, e.g. calls:render
The claimed value; the CLI sends the target name.
Null lets the backend score it
Withdraw a claim. The ix CLI does not send one; only type is documented here.
object
Responses
Section titled “Responses”Commit results
object
Example generated
[ { "status": "example", "rev": 1 }]