Patch Session
Update session metadata.
Only user_memory can be updated. To change agent configuration, create a new session.
Args: request: FastAPI request with tenant context session_id: Session identifier payload: Update request
Returns: PatchSessionResponse with update timestamp
Raises: NotFoundError: If session not found
Example: bash curl -X PATCH http://localhost:8000/v1/agents/sessions/ses_abc123 \ -H "Authorization: Bearer {api_key}" \ -H "X-Namespace: {namespace_id}" \ -H "Content-Type: application/json" \ -d '{ "user_memory": { "preferences": {"language": "en", "domain": "tech"} } }'
Path parameters
Session ID
Session ID
Request body
Response
Successful Response
Changes
Changed in 1 of the 28 revisions of this API.1
- ○
the endpoint scheme security
BearerAuth AND NamespaceHeaderwas added to the APIapi-security-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○