Create an explicit typed link between two zettels.
LINKS_TO uses the bidirectional helper; arbitrary relation types go through add_dynamic_relation and become visible via GET /zettel/by-relation/{source_id}/{relation_type}.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/memory/zettel/string/links" \ -H "Content-Type: application/json" \ -d '{ "target_id": "string" }'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Create Decision
Create a new decision with provenance tracking.
Create Ontology Relation
Declare an ontology relation (CORE-MEMTYPE-DECLARE-1; declare-only in P1). Record links are relations with record-class domain/range. Edge writes are NOT validated against domain/range/cardinality yet (P3). 400 on an invalid tier; 409 on an identity-slot conflict.