PUT
/
api
/
agents
/
{id}

Request

curl -X PUT https://api.boty.chat/api/agents/agent_123 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated Support Bot",
    "systemPrompt": "Updated system prompt..."
  }'

Path Parameters

id
string
required
The agent ID

Body Parameters

name
string
Agent name
description
string
Agent description
systemPrompt
string
System prompt
model
string
LLM model
temperature
number
Response temperature
status
string
Agent status: active or inactive

Response

{
  "success": true,
  "data": {
    "_id": "agent_123",
    "name": "Updated Support Bot",
    "systemPrompt": "Updated system prompt...",
    "updatedAt": "2024-01-20T15:30:00Z"
  }
}