POST /api/v1/cloud/sessions/{session_id}
Updates mutable Session attributes. Omitted fields are preserved.
Path parameters
| Parameter | Type | Description |
|---|---|---|
session_id | string | Session ID with the sess_ prefix |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Content-Type | Yes | application/json |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
title | string | null | No | New Session title. Send null to clear it |
metadata | object | null | No | Metadata patch. Object keys with null values delete those keys; top-level null is currently a no-op |
agent | object | No | Mid-session Agent update. Only tools and mcp_servers are supported, and each is a full replacement when present |
Note:vault_idsappears in the public Session shape but is not currently writable through this endpoint — the request will be rejected. Use it only when reading; it is not part of the supported request body.delta_flush_interval_msis also not supported.
Example request
Example response
HTTP 200 OK Returns the updated Session object.Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Malformed request body, unsupported field, or unsupported Agent update field |
| 401 | authentication_error | PAT invalid or expired |
| 404 | not_found_error | Session does not exist |
Related
Start a session
Run an agent against an environment as a stateful conversation.