Split a merged entry back off a notes graph node
POST
/api/v1/saga/graph/nodes/{id}/split
const url = 'https://api.yggy.tech/api/v1/saga/graph/nodes/example/split';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"sourceId":"example","doNotMerge":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.yggy.tech/api/v1/saga/graph/nodes/example/split \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "sourceId": "example", "doNotMerge": true }'Moves back the relations and facts the merge moved; those that changed since stay. With doNotMerge the two are never merged again. Only in the caller’s own personal workspace.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
Graph node id
string
Graph node id
Request Body required
Section titled “Request Body required ” Media type application/json
object
sourceId
required
The merged entry to split off.
string
doNotMerge
Also never merge the two again.
boolean
Example generated
{ "sourceId": "example", "doNotMerge": true}Responses
Section titled “ Responses ”Split
Media type application/json
object
movedBack
required
Relations and facts that moved back to the split entry.
integer
stayed
required
Relations and facts that changed since the merge and stay where they are.
integer
Example generated
{ "movedBack": 1, "stayed": 1}Not a yggy notes workspace
Media type application/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
details
Example
{ "success": false}No such node, or nothing active was merged from that entry
Media type application/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
details
Example
{ "success": false}The graph changed since the merge; refresh and retry
Media type application/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
details
Example
{ "success": false}Too many graph requests
Media type application/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
details
Example
{ "success": false}