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"
}Update an 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"
}New name for the agent
New description for the agent
Updated configuration settings
Show child attributes
New status for the agent
New avatar URL for the agent
Updated metadata for the agent
Successful Response
Name of the agent
Agent-specific configuration settings
Show child attributes
Unique identifier for the agent
ID of the template this agent was created from
ID of the organization that owns this agent
Current status of the agent (active, inactive, etc)
When the agent was created
When the agent was last updated
Description of the agent's purpose and capabilities
URL of the agent's avatar image
Additional metadata for the agent
List of files associated with this agent
Show child attributes
List of team IDs this agent belongs to
Count of successfully completed flow executions
Count of pending and running flow executions
Bot subscriber ID used for executing flows
Platform app installation ID
Platform app ID
Platform app slug