PUT
/
api
/
v1
/
agents
/
{agent_id}
Update Agent
curl --request PUT \
  --url https://agent-studio.thena.ai/api/v1/agents/{agent_id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "configuration": {
    "communication_style": "FORMAL",
    "core_capabilities": [
      "enterprise sales",
      "negotiation",
      "solution selling"
    ],
    "expertise_level": "EXPERT",
    "goal": "Drive enterprise sales",
    "knowledge_domains": [
      "enterprise sales",
      "B2B",
      "solution architecture"
    ],
    "personality_traits": [
      "strategic",
      "persuasive",
      "consultative"
    ],
    "role": "Senior Sales Representative",
    "tone": "Professional"
  },
  "description": "Updated description",
  "metadata": {
    "updated_by": "admin"
  },
  "name": "Updated Sales Assistant",
  "status": "inactive"
}'
{
  "bot_sub": "VVYZYKNJ10E18462MAKTHQRW4C142",
  "completed_flows_count": 42,
  "configuration": {
    "language": "English",
    "team_size": 5,
    "tone": "Professional"
  },
  "created_at": "2023-01-01T00:00:00Z",
  "description": "Customized sales assistant for my team",
  "files": [],
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "metadata": {
    "created_by": "admin",
    "updated_by": "admin"
  },
  "name": "My Sales Assistant",
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "pending_flows_count": 5,
  "status": "active",
  "team_id": [
    "team-1",
    "team-2"
  ],
  "template_id": "123e4567-e89b-12d3-a456-426614174000",
  "updated_at": "2023-01-01T00:00:00Z"
}

Authorizations

x-api-key
string
header
required

Path Parameters

agent_id
string<uuid>
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.