Skip to main content
PATCH
Patch Session

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

session_id
string
required

Session ID

Body

application/json

Request payload for updating session metadata.

Only user_memory can be updated after session creation. To change agent_config or quotas, create a new session.

Attributes: user_memory: Updated user memory/preferences

Example: python request = PatchSessionRequest( user_memory={ "preferences": {"language": "es", "domain": "science"}, "learned_context": {"favorite_topics": ["AI", "robotics"]} } )

user_memory
User Memory · object
required

Updated user memory (REQUIRED)

Response

Successful Response

Response for session update.

Attributes: session_id: Session identifier updated_at: Update timestamp

session_id
string
required

Session identifier

updated_at
string<date-time>
required

Update timestamp