curl --location --request PUT 'https://api.stateset.com/v1/agents/agent_123' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
--data-raw '{
"agent_name": "Support Bot v2",
"description": "Updated return and warranty support agent",
"instructions": "Ask clarifying questions before taking action.",
"activated": true
}'
{
"agent_name": "<string>",
"agent_type": "<string>",
"description": "<string>",
"activated": true,
"created_at": "<string>",
"updated_at": "<string>",
"org_id": "<string>",
"voice_model": "<string>"
}This endpoint updates an agent
curl --location --request PUT 'https://api.stateset.com/v1/agents/agent_123' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
--data-raw '{
"agent_name": "Support Bot v2",
"description": "Updated return and warranty support agent",
"instructions": "Ask clarifying questions before taking action.",
"activated": true
}'
{
"agent_name": "<string>",
"agent_type": "<string>",
"description": "<string>",
"activated": true,
"created_at": "<string>",
"updated_at": "<string>",
"org_id": "<string>",
"voice_model": "<string>"
}curl --location --request PUT 'https://api.stateset.com/v1/agents/agent_123' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
--data-raw '{
"agent_name": "Support Bot v2",
"description": "Updated return and warranty support agent",
"instructions": "Ask clarifying questions before taking action.",
"activated": true
}'