Update user's LLM provider API keys (partial merge). Keys are encrypted at rest (Fernet) before storage. Omitted keys are preserved.
Send Authorization: Bearer <token>. The token is either a Clerk session JWT or a SmartMemory API key (prefix sm_live_, sm_test_, or legacy sk_).
In: header
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/auth/llm-keys" \ -H "Content-Type: application/json" \ -d '{}'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Update Graph Node
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.
Update Memory
Update a memory item (partial merge). Canonical update path (CORE-CRUD-UPDATE-1): always routes through `SecureSmartMemory.update_properties(item_id, properties, write_mode)`. - `content`/`metadata` are conveniences folded into the properties dict. - `properties` + `write_mode` expose the raw node-property update API. - When both are provided, `properties` takes precedence and conveniences are ignored (contract: keeps the two paths cleanly separated). - A `status` (in `properties` or `metadata`) outside the lifecycle vocabulary is refused with 422 `error_code=status_not_lifecycle` and nothing is written (CORE-2.0-CALLER-STATUS-LIFECYCLE-1). A lifecycle value (`archived`, `retracted`, `retired`, ...) stays writable here: it is in the vocabulary, so the row's owner can still repair it. An empty property key is 422 `empty_property_key`.