Skip to main content
PUT
/
agents
/
{agentId}
/
connections
Update agent's app-connection assignments
curl --request PUT \
  --url https://api.onecli.sh/v1/agents/{agentId}/connections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "connections": [
    {
      "appConnectionId": "<string>",
      "sessionPolicy": {}
    }
  ]
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

API key obtained from the dashboard or GET /user/api-key

Path Parameters

agentId
string
required

Body

application/json
connections
object[]
required

Response

Assignments updated

success
boolean