Skip to content
Follow yggy on LinkedInFollow @yggy_tech on X

Split a merged entry back off a notes graph node

POST
/api/v1/saga/graph/nodes/{id}/split
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.

id
required

Graph node id

string
>= 1 characters <= 64 characters /^0x[0-9a-f]+$/i/

Graph node id

Media type application/json
object
sourceId
required

The merged entry to split off.

string
<= 64 characters /^0x[0-9a-f]+$/i/
doNotMerge

Also never merge the two again.

boolean
Example generated
{
"sourceId": "example",
"doNotMerge": true
}

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
}