> ## Documentation Index
> Fetch the complete documentation index at: https://docs.visiovoice.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update assistant

> Update an existing AI assistant's configuration

This endpoint allows you to update an existing AI assistant's configuration. All fields are optional - only provide the fields you want to update.

### Path Parameters

**id** `integer` *required*

The unique identifier of the assistant to update

### Request Body

#### Core Fields

**assistant\_name** `string`

The name of the assistant (max 255 characters)

**voice\_id** `integer`

The voice ID to use for the assistant (must exist in available voices)

**language** `string`

The language name for the assistant (max 100 characters)

**llm\_model** `string`

The LLM model name to use (max 100 characters)

**calls\_direction** `string`

The call direction type. Options: `receive`, `make`

**engine\_type** `string`

The engine type to use. Options: `pipeline`, `multimodal`

**timezone** `string`

The timezone for the assistant (e.g., "America/New\_York")

**initial\_message** `string`

The initial message the assistant will speak when the call starts

**system\_prompt** `string`

The system prompt that defines the assistant's behavior and personality

#### Optional Configuration

**phone\_number\_id** `integer`

The ID of a phone number to assign to the assistant (set to null to unassign)

**tool\_ids** `integer[]`

Array of mid call tool IDs to sync with the assistant. Replaces all existing tool assignments. Pass an empty array to remove all tools. Each element must be a valid tool ID that belongs to your account.

**endpoint\_type** `string`

Voice activity detection type. Options: `vad`, `ai`

**endpoint\_sensitivity** `number`

Endpoint sensitivity level (0-5)

**interrupt\_sensitivity** `number`

Interrupt sensitivity level (0-5)

**ambient\_sound\_volume** `number`

Ambient sound volume level (0-1)

**post\_call\_evaluation** `boolean`

Whether to enable post-call evaluation

**send\_webhook\_only\_on\_completed** `boolean`

Whether to send webhooks only on completed calls

**include\_recording\_in\_webhook** `boolean`

Whether to include recording URL in webhook payload

#### Webhook Configuration

**is\_webhook\_active** `boolean`

Whether webhook notifications are enabled

**webhook\_url** `string`

The webhook URL for post-call notifications (can be set to null to remove)

#### Interruption Settings

**use\_min\_interrupt\_words** `boolean`

Whether to use minimum interrupt words setting

**min\_interrupt\_words** `integer`

Minimum number of words before interruption is allowed (0-10)

#### Variables and Schema

**variables** `object`

Key-value pairs of custom variables for the assistant

**post\_call\_schema** `array`

Schema definition for post-call data extraction

**post\_call\_schema properties**

**post\_call\_schema\[].name** `string` *required*

The name of the schema field (alphanumeric and underscores only)

**post\_call\_schema\[].type** `string` *required*

The data type. Options: `string`, `number`, `bool`

**post\_call\_schema\[].description** `string` *required*

Description of what this field represents

#### End Call Tool

**end\_call\_tool.description** `string`

Description for the end call tool functionality (max 500 characters)

#### Voice and Speech Settings

**llm\_temperature** `number`

LLM temperature setting (0-1)

**voice\_stability** `number`

Voice stability setting (0-1)

**voice\_similarity** `number`

Voice similarity setting (0-1)

**speech\_speed** `number`

Speech speed multiplier (0.7-1.2)

#### Call Behavior Settings

**allow\_interruptions** `boolean`

Whether to allow caller interruptions

**filler\_audios** `boolean`

Whether to use filler audio during processing

**re\_engagement\_interval** `integer`

Re-engagement interval in seconds (7-600)

**max\_call\_duration** `integer`

Maximum call duration in seconds (20-1200)

**max\_silence\_duration** `integer`

Maximum silence duration in seconds (1-120)

**end\_call\_on\_voicemail** `boolean`

Whether to end call when voicemail is detected

**noise\_cancellation** `boolean`

Whether to enable noise cancellation

**record\_call** `boolean`

Whether to record the call

**who\_speaks\_first** `string`

Who speaks first in the call. Options: `AI assistant`, `Customer`

### Response

**message** `string`

Success message confirming assistant update

**data** `object`

**properties**

**id** `integer`

The unique identifier of the updated assistant

**name** `string`

The name of the assistant

**status** `string`

The current status of the assistant

**type** `string`

The type of assistant (`inbound` or `outbound`)

**mode** `string`

The engine mode (`pipeline` or `multimodal`)

### Error Responses

**404 Not Found**

**Error Response**

**message** `string`

Error message when the assistant is not found or doesn't belong to the authenticated user

**422 Validation Error**

**Error Response**

**message** `string`

Error message indicating validation failure

**errors** `object`

Detailed validation errors for each field

**500 Internal Server Error**

**Error Response**

**message** `string`

Error message indicating assistant update failure

```json 200 Success Response theme={null}
{
  "message": "Assistant updated successfully",
  "data": {
    "id": 789,
    "name": "Updated Sales Assistant",
    "status": "active",
    "type": "outbound",
    "mode": "pipeline"
  }
}
```

```json 404 Not Found theme={null}
{
  "message": "Assistant not found"
}
```

```json 422 Validation Error theme={null}
{
  "message": "Validation failed",
  "errors": {
    "speech_speed": [
      "The speech speed must be between 0.7 and 1.2."
    ],
    "webhook_url": [
      "The webhook url must be a valid URL."
    ]
  }
}
```

```json 500 Internal Server Error theme={null}
{
  "message": "Assistant update failed"
}
```

### Notes

* Only the fields you provide in the request body will be updated
* All validation rules apply the same as when creating an assistant
* To remove a phone number assignment, set `phone_number_id` to `null`
* To disable webhook, set `webhook_url` to `null` or `is_webhook_active` to `false`
* The assistant must belong to the authenticated user to be updated


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.