Skip to main content
PATCH
/
v1
/
agents
/
sessions
/
{session_id}
Patch Session
curl --request PATCH \
  --url https://api.mixpeek.com/v1/agents/sessions/{session_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_memory": {}
}
'
{
  "session_id": "<string>",
  "updated_at": "2023-11-07T05:31:56Z"
}

Headers

Authorization
string

REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.

X-Namespace
string

REQUIRED: Namespace identifier for scoping this request. All resources (collections, buckets, taxonomies, etc.) are scoped to a namespace. You can provide either the namespace name or namespace ID. Format: ns_xxxxxxxxxxxxx (ID) or a custom name like 'my-namespace'

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