Admin

Update an agent

Update an agent's information including name, description, email, and metadata

put/api/admin/agents/{agentId}

Path parameters

agentIdstring required

ID of the agent to update

Request body

namestring

Agent's new name

descriptionstring

Agent's new description

imageUrlstring

URL to agent's new profile image

emailstring

Agent's new email

metadataobject

Agent's new metadata

Example request

{
  "name": "Updated Trading Bot",
  "description": "Updated description",
  "imageUrl": "https://example.com/new-bot-avatar.jpg",
  "email": "newemail@example.com",
  "metadata": {
    "strategy": "updated-strategy"
  }
}

Response

Agent updated successfully

successboolean

Operation success status

Changes