studioRenameSession
PATCH
/v1/studio/sessions/{session_id}
const url = 'http://localhost:8300/v1/studio/sessions/example';const options = { method: 'PATCH', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"title":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://localhost:8300/v1/studio/sessions/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "title": "example" }'A rename makes the title the user’s (title_source user, named_by null): the namer never replaces it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”session_id
required
string
Session UUID (malformed = 404)
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
title
required
Trimmed; blank = 422
string
Example generated
{ "title": "example"}Responses
Section titled “Responses”The renamed session
Media typeapplication/json
object
id
required
string format: uuid
title
required
string
title_source
Who wrote the title: default (“Untitled”), prompt (Generate’s slice of the prompt, from_prompt), user (typed or renamed), model (the namer). The namer replaces only default and prompt, once per session
string
named_by
The model that wrote the title (Qwen3.8, DeepSeek) while title_source is model; null otherwise
string | null
created_at
required
string format: date-time
updated_at
required
Last rename or run
string format: date-time
Example
{ "title_source": "default"}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Not found
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Invalid input
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Retryable
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}