Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/memory/ontology/queue/bulk" \ -H "Content-Type: application/json" \ -d '{ "action": "approve", "ids": [ "string" ] }'{
"results": [
{
"id": "string",
"ok": true,
"error": "string"
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Bulk Read Edges
Read all edges between a set of nodes in a single query. Accepts a list of node IDs (max 5000) and returns every directed edge where both endpoints are in the list, scoped to the caller's workspace. Replaces N per-node ``GET /{item_id}/links`` calls with one round-trip.
Bulk Write
Bulk upsert nodes and edges into the knowledge graph. Optionally deletes all nodes matching ``delete_prefix`` (scoped to the caller's workspace) before writing, enabling clean replace-all semantics.