Set how untitled sessions are named
const url = 'http://localhost:8300/v1/studio/admin/session-names';const options = { method: 'PUT', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"mode":"off","provider":"example","model":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:8300/v1/studio/admin/session-names \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "mode": "off", "provider": "example", "model": "example" }'Admin only (403). Applies to sessions named from then on. 422 <provider> is not an enabled provider, <model> is not a model of <provider>, provider and model are only for remote, remote needs a provider, Qwen3.8 27B is not downloaded (local with no live host that can run llm-ask); 409 remote models are off on this deployment for a provider of kind remote while the deployment’s switch is off (a server, “on this network”, needs no switch).
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Remote only, required there
Remote only; absent = the provider’s default_model
Responses
Section titled “Responses”The setting
How an untitled session is named. Default off
object
Off; local: the llm pack (Qwen3.8 27B) on the local GPU queue, nothing leaves the machine; remote: a provider of Hub › Providers, kind remote (sends the prompt out) or server (on this network)
Remote: the provider’s name; null otherwise
Remote: one of its models; null otherwise
A live host can run llm-ask now (else Local is greyed: “Qwen3.8 27B not downloaded”)
The deployment’s remote switch
Null until first set
Example
{ "mode": "off"}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Valid token without the admin role: “admin role required”
object
Example generated
{ "detail": "example"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}Invalid input
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}