Merge a given graph with the existing graph under marked merge nodes as batch update.
POST/graph/:graph_id/batch/merge
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.
Request​
Path Parameters
The identifier of the graph
Query Parameters
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.
Default value: true
If this parameter is set, the request will block until the batch update is finished. The response will contain the batch identifier and the result of the batch update.
- application/x-ndjson
Body
required
The graph is sent as newline delimited json, where each line holds a document, which is either a node or an edge.
- NodeInGraph
- Edge
oneOf
The identifier of this node.
reported
object
The kind of this node.
desired
object
metadata
object
The id of node to start from
The id of the node to go to
Possible values: [default
, delete
]
The type of this edge
Responses​
- 200
Return a summary of actions that has been applied.
- application/json
- Schema
- Example (from schema)
Schema
The number of nodes that have been created.
The number of nodes that have been updated.
The number of nodes that have been deleted.
The number of edges that have been created.
The number of edges that have been updated.
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
}