Graph API
POST /v1/users/:user_id/graph/edges
Create a graph edge between two memory objects.
Request
Fields
| Field | Type | Required | Description |
|---|---|---|---|
source_id | UUID | Yes | Source memory or task node |
target_id | UUID | Yes | Target memory or task node |
relation | string | Yes | Relation type |
weight | number | No | Optional edge weight |
Response
Supported Relation Types
Next, RelatedTo, Contradicts, Supports, Abstracts, DerivedFrom, CausedBy, EvolvedTo, IsSubTaskOf, Blocks, Accomplishes