SmartMemory
PATCH
/memory/graph/nodes/{node_id}

Update properties on a graph node (label, entity_type).

When entity_type changes, also creates an ontology pattern so the correction feeds back into the self-learning EntityRuler.

Path Parameters

node_id*Node Id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/memory/graph/nodes/string" \  -H "Content-Type: application/json" \  -d '{}'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}