# Update voice agent

> Change a voice agent's name, AI agent, status or settings.

Source: https://docs.mycrmsim.com/docs/voice-agents/update-voice-agent

```http
PATCH https://backend.mysmsgateway.app/api/v1/ext/voice-agents/{id}
```

- Category: myCRMSIM Calls / Voice Agents
- Auth: Bearer access token
- Scope: `voice_agents.write`

Send only what changes; `settings` replaces the whole object. `status: "paused"` stops it taking or placing calls (an AI call to a contact whose agent is paused is refused, never swapped).

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The voice agent id. Example: `va_01HZX4Q8K2` |
| `workspace_id` | body | number | yes | A workspace of the installer. Example: `7` |
| `name` | body | string | no | Up to 255 characters. |
| `agent_id` | body | string | no | Another AI agent to speak for. |
| `status` | body | enum | no | active / paused. One of: `active`, `paused`. |
| `settings` | body | object | no | The full settings object (see Create). |

## Request body

```json
{
  "workspace_id": 7,
  "status": "paused"
}
```

## Response 200

OK

```json
{
  "success": true,
  "message": "Voice agent updated",
  "data": {
    "id": "va_01HZX4Q8K2",
    "workspace_id": 7,
    "name": "Sales Voice",
    "agent_id": "0f3b2c1d-7e8a-4b9c-a1d2-3e4f5a6b7c8d",
    "agent_name": "Sales Agent",
    "status": "paused",
    "answers_inbound": true,
    "settings": {
      "mode": "pipeline",
      "template_id": "receptionist",
      "stt": {
        "provider": "deepgram",
        "model": "nova-3",
        "language": "en"
      },
      "llm": {
        "model": "gpt-4.1-mini",
        "temperature": 0.4
      },
      "tts": {
        "provider": "cartesia",
        "model": "sonic-2",
        "voice": "a0e99841-438c-4a64-b679-ae501e7d6091",
        "speed": 1
      },
      "realtime": null,
      "greeting": "Hi, this is Sam from Acme. Is now a good time?",
      "voice_description": "Warm, unhurried, Australian.",
      "instructions": "Confirm the appointment and offer to reschedule if needed.",
      "responsiveness": "balanced",
      "allow_interruptions": true,
      "disclose_ai": true,
      "max_call_seconds": 600,
      "inbound_answer_after_seconds": 15,
      "inbound_hours": {
        "enabled": false,
        "timezone": "Australia/Sydney",
        "days": {
          "mon": {
            "enabled": true,
            "open": "09:00",
            "close": "17:00"
          }
        }
      }
    },
    "created_at": "2026-11-01T00:00:00+00:00",
    "updated_at": "2026-11-02T00:00:00+00:00"
  }
}
```

## Response 400

Nothing to change, or a setting the AI service refused

```json
{
  "success": false,
  "message": "No editable fields provided."
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Voice agents are switched off for the account

```json
{
  "success": false,
  "code": "voice_agents_off",
  "message": "Voice agents are not enabled for this account."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): voice_agents.write. This integration was granted: …"
}
```

## Response 404

Voice agent does not exist or is not the installer's (same response for both)

```json
{
  "success": false,
  "message": "Voice agent not found or not accessible to this token"
}
```
