Stores one operator choice on the existing run row.
PUT
/v1/m/sessions/runs/{ref}/peers
const url = 'https://example.com/v1/m/sessions/runs/example/peers';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"peers":["example"],"peers_rule":"same-template"}'};
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/peers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "peers": [ "example" ], "peers_rule": "same-template" }'Stores one operator choice on the existing run row. 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
One of:
object
peers
required
The sessions this run may message or hand work to. Send this or peers_rule, not both.
Array<string>
peers_rule
Every live session launched from the same template in this folder. Send this or peers, not both.
string
object
peers
The sessions this run may message or hand work to. Send this or peers_rule, not both.
Array<string>
peers_rule
required
Every live session launched from the same template in this folder. Send this or peers, not both.
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}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
{}