PATCH
/
v2
/
agent
/
{agent_id}
curl --request PATCH \
  --url https://api.bolna.dev/v2/agent/{agent_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_config": {
    "agent_name": "Alfred",
    "agent_welcome_message": "How are you doing Bruce?",
    "webhook_url": null,
    "synthesizer": {
      "provider": "polly",
      "provider_config": {
        "voice": "Matthew",
        "engine": "generative",
        "sampling_rate": "8000",
        "language": "en-US"
      },
      "stream": true,
      "buffer_size": 150,
      "audio_format": "wav"
    }
  },
  "agent_prompts": {
    "task_1": {
      "system_prompt": "What is the Ultimate Question of Life, the Universe, and Everything?"
    }
  }
}'
{
  "message": "success",
  "state": "updated"
}

Currently, only the following agent attributes can be updated for the PATCH update.

  • agent_name
  • agent_welcome_message
  • webhook_url
  • synthesizer
  • agent_prompts

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string
required

Body

application/json
Update an agent
agent_config
object

Configuration of the agent

agent_prompts
object

Prompts to be provided to the agent. It can have multiple tasks of the form task_<task_id>

Response

200
application/json
agent status response

The response is of type any.