AgentConnect
Member sets

Spread sessions across a member set

Turn the set’s session spreading on or off. On, an agent placed on the set may run its isolated sessions — with its repositories, provider credentials and agent secrets — on members other than the one holding it, provided that machine’s owner has opted it in with sandbox.share. Off (the default), every session runs on its holder. Every member-set response carries the current value as spreadSessions.

PUT
/v1/orgs/{orgId}/member-sets/{id}/spread-sessions

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

orgId*string
id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/orgs/string/member-sets/string/spread-sessions" \  -H "Content-Type: application/json" \  -d '{    "enabled": true  }'
{  "setId": "83e19bc1-5428-42b5-88ea-b28354e481f3",  "name": "string",  "memberDaemonIds": [    "877b0342-55ab-415d-9758-c97337e2dbea"  ],  "agentCount": -9007199254740991,  "spreadSessions": true}