PUT
/
v1
/
agents
curl --location --request PUT 'https://api.stateset.com/v1/agents' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "em_1NXWPnCo6bFb1KQto6C8OWvE",
    "agent_name": "Example Name",
    "agent_type": "string",
    "description": "Example Description",
    "activated": true,
    "created_at": "2021-09-01T00:00
    "updated_at": "2021-09-01T00:00",
    "org_id": "org_1NXWPnCo6bFb1KQto6C8OWvE",
    "voice_model": "Example Voice Model",
    "voice_model_id": "vm_1NXWPnCo6bFb1KQto6C8OWvE"

}'
{
  "agent_name": "<string>",
  "agent_type": "<string>",
  "description": "<string>",
  "activated": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "org_id": "<string>",
  "voice_model": "<string>",
  "voice_model_id": "<string>"
}

Body

agent_name
string

The name of the agent to be created.

agent_type
string

The type of the agent (e.g., string, number, boolean).

description
string

A brief description of the agent.

activated
string

The activation status of the agent.

created_at
string

The date and time the agent was created.

updated_at
string

The date and time the agent was last updated.

org_id
string

The organization ID to which the agent belongs.

voice_model
string

The voice model associated with the agent.

voice_model_id
string

The voice model ID associated with the agent.

Response

agent_name
string

The name of the created agent.

agent_type
string

The type of the created agent.

description
string

The description of the created agent.

activated
string

The activation status of the created agent.

created_at
string

The date and time the agent was created.

updated_at
string

The date and time the agent was last updated.

org_id
string

The organization ID to which the agent belongs.

voice_model
string

The voice model associated with the agent.

voice_model_id
string

The voice model ID associated with the agent.

curl --location --request PUT 'https://api.stateset.com/v1/agents' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "em_1NXWPnCo6bFb1KQto6C8OWvE",
    "agent_name": "Example Name",
    "agent_type": "string",
    "description": "Example Description",
    "activated": true,
    "created_at": "2021-09-01T00:00
    "updated_at": "2021-09-01T00:00",
    "org_id": "org_1NXWPnCo6bFb1KQto6C8OWvE",
    "voice_model": "Example Voice Model",
    "voice_model_id": "vm_1NXWPnCo6bFb1KQto6C8OWvE"

}'