Skip to main content
PATCH
/
agents
/
{agentId}
Rename an agent
curl --request PATCH \
  --url https://api.onecli.sh/v1/agents/{agentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Production Agent"
}
'
{
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Path Parameters

agentId
string
required

Body

application/json
name
string
required
Required string length: 1 - 255
Example:

"Production Agent"

Response

Agent renamed

success
boolean