Skip to content

Links

PATCH /api/v1/nodes/:id/links
Content-Type: application/json

Set the links for a node. This is a full replacement — existing links not in the request are removed.

{
"links": [
{ "target_id": "node_abc", "type": "related" },
{ "target_id": "node_def", "type": "related" }
]
}

Links are bidirectional — creating a link from A to B also creates the reverse link.


GET /api/v1/nodes/:id/related

Returns 1-hop graph neighbors of the specified node.

ParameterTypeDefaultDescription
limitnumberMax results (1-500)
{
"nodes": [
{
"id": "node_abc",
"title": "Related concept",
"summary": "Brief description",
"relationship_type": "related"
}
]
}