Renames the run; an empty name clears it.
PUT
/v1/m/sessions/runs/{ref}/name
const url = 'https://example.com/v1/m/sessions/runs/example/name';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"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 https://example.com/v1/m/sessions/runs/example/name \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example" }'Renames the run; an empty name clears it. The route supplies run-write authorization in the run’s recorded workspace.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” ref
required
string
Path parameter ref.
Header Parameters
Section titled “ Header Parameters ” X-Olivares-Tenant
string format: uuid
Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “ Request Body required ” Media type application/json
object
name
required
The session’s new name, trimmed; at most 200 characters, no control or invisible (format, line or paragraph separator) characters. An empty name clears it.
string
Example generated
{ "name": "example"}Responses
Section titled “ Responses ”The run resource after the change
Media type application/json
object
run_ref
required
The operated session’s stable reference.
string
state
required
The run’s derived lifecycle state after the control.
string
key
additional properties
any
Example generated
{ "run_ref": "example", "state": "example"}Bad request
Media type application/json
object
Example generated
{}Unauthenticated
Media type application/json
object
Example generated
{}Forbidden
Media type application/json
object
Example generated
{}Not found
Media type application/json
object
Example generated
{}Conflict / setup required
Media type application/json
object
Example generated
{}Rate limited
Media type application/json
object
Example generated
{}