Merge a given graph with the existing graph under marked merge nodes as batch update.​
Experimental: This API is not stable and might be subject of change.
Merge a given graph with the existing graph under marked merge nodes as batch update.
Path Parameters
- graph_id string required
The identifier of the graph
Example: resoto
Query Parameters
- batch_id string
A batch identifier is a string that uniquely identifies the batch update. If this parameter is omitted, a new batch identifier is created automatically. The resulting batch identifier can be retrieved via the response message.
- application/x-ndjson
Request Body required
The graph is sent as newline delimited json, where each line holds a document, which is either a node or an edge.
- oneOf
- MOD1
- MOD2
id stringThe identifier of this node.
type stringreported object
kind stringThe kind of this node.
desired object
metadata object
from stringThe id of node to start from
to stringThe id of the node to go to
edge_type stringPossible values: [
default
,delete
]The type of this edge
- 200
Return a summary of actions that has been applied.
- application/json
- Schema
- Example (from schema)
Schema
- nodes_created integer
The number of nodes that have been created.
- nodes_updates integer
The number of nodes that have been updated.
- nodes_deleted integer
The number of nodes that have been deleted.
- edges_created integer
The number of edges that have been created.
- edges_updated integer
The number of edges that have been updated.
- edges_deleted integer
The number of edges that have been deleted.
{
"nodes_created": 0,
"nodes_updates": 0,
"nodes_deleted": 0,
"edges_created": 0,
"edges_updated": 0,
"edges_deleted": 0
}