Skip to content

Update Session

POST/v1/sessions/{id}

Shallow-merge metadata or fully replace Session-local tool and MCP server overrides. Null metadata values delete keys; a null title preserves the current title.

Path parameters

stringidrequired

Session ID.

Request body

Optional<string | null>title

New title; null or omission preserves the current title.

Optional<object>metadata

Shallow merge patch; null property values delete keys.

Optional<array>agent.tools

Full replacement for the Session-local tool override.

Optional<array>agent.mcp_servers

Full replacement for the Session-local MCP server override.