Skip to main content
PATCH
/
agents
/
{agentId}
/
secret-mode
Update agent secret mode
curl --request PATCH \
  --url https://api.onecli.sh/v1/agents/{agentId}/secret-mode \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "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
mode
enum<string>
required
Available options:
all,
selective

Response

200 - application/json

Secret mode updated

success
boolean