Learnings
Create Learning
Create a new learning record. For the identity-keyed learning types (user_profile, user_memory, session_context, entity_memory) the record id is derived deterministically from the identity fields so it reconciles with what the agent reads/writes — provide those fields (else 422), and if a record already exists the request is rejected with 409 (use PATCH to update it). Other types get a generated id. For a scoped (non-admin) caller, the body's user_id must be omitted/null or match the caller (mismatch → 403); admins and unscoped callers may set any user_id.
post/learnings
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
db_idstring nullable
Database ID to use
tablestring nullable
The database table to use (requires db_id)
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.