Skip to main content
PUT
/
agents
/
{agentId}
/
secrets
Update agent's assigned secrets
curl --request PUT \
  --url https://api.onecli.sh/v1/agents/{agentId}/secrets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "secretIds": [
    "<string>"
  ]
}
'
{
  "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
secretIds
string[]
required

Array of secret IDs to assign

Response

200 - application/json

Secrets updated

success
boolean