Update a session
Updates a session (called a "notebook" in the product UI): its name, attached knowledge files, tags, or retrieval settings. Set knowledgeIds and forceKnowledgeRetrieval: true together to enable grounded retrieval for POST /api/chat against this session - retrieval is gated by these session fields, not by the chat request. lakeScope narrows that retrieval to a chosen set of data lakes, and a non-empty list also turns forced retrieval on for a session that has never set it; omit it to leave the current choice unchanged, or send null to clear it so retrieval reaches every lake you can access. includeLibraryFiles sets whether the session grounds on your own library alongside its lakes; false confines it to lake content even when every lake is in scope (files attached to the session still reach the model and its knowledge-base tools), and is set aside (library included) while forceKnowledgeRetrieval is false. Authenticate with an API key (b4m_live_) or a JWT. Warning: adding to knowledgeIds shares those files with every member of every project containing this session by default (see propagateToProjects), and that sharing cannot be undone through the UI.
Request
- Base URL: https://your-deployment.example.com
- URL: https://your-deployment.example.com/api/sessions/{id}
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Path parameters
Request body
Example request
{
"knowledgeIds": [
"<fabFileId>"
],
"forceKnowledgeRetrieval": true
}Response
The updated session.
Changes
No recorded changes to this operation across all 1 revision of this API.