> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.lumenia.net/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.lumenia.net/_mcp/server.

# Update workspace voice integration

PATCH https://app.lumenia.net/api/v1/workspaces/{workspaceId}/integrations/voice
Content-Type: application/json

Update selected voice integration settings.

Reference: https://docs.lumenia.net/api-reference/workspace-voice/update-workspace-voice-integration

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <API_KEY>`, where `API_KEY` is your API key.

## Request

### Path parameters

- `workspaceId` (string, required) — Workspace whose voice integration to update.

### Headers

- `X-Account-Id` (string, required) — Account that owns the workspace.

### Body (application/json)

This endpoint expects an object.

- `firstMessage` (string, optional) — The greeting the assistant speaks first.
- `prompt` (string, optional) — System prompt for the live voice conversation.
- `voice` (V1WorkspacesWorkspaceIdIntegrationsVoicePatchRequestBodyContentApplicationJsonSchemaVoice, optional) — The text-to-speech voice. For the vapi provider set model to null or omit it; for 11labs both voiceId and model are required.
- `fallbackVoices` (list of V1WorkspacesWorkspaceIdIntegrationsVoicePatchRequestBodyContentApplicationJsonSchemaFallbackVoicesItems, optional) — Replaces the fallback voice chain. Each entry needs a provider; send an empty array to clear.
- `transcriber` (V1WorkspacesWorkspaceIdIntegrationsVoicePatchRequestBodyContentApplicationJsonSchemaTranscriber, optional) — The speech-to-text transcriber.
- `fallbackTranscribers` (list of V1WorkspacesWorkspaceIdIntegrationsVoicePatchRequestBodyContentApplicationJsonSchemaFallbackTranscribersItems, optional) — Replaces the fallback transcriber chain. Send an empty array to clear.

## Response

### 200

The updated voice integration.

- `voice` (V1WorkspacesWorkspaceIdIntegrationsVoicePatchResponsesContentApplicationJsonSchemaVoice, required) — The assistant config after the update — see GET .../integrations/voice for the field notes.

## Errors

### 400 Bad Request Error

No updatable field provided, or a field does not match the options catalog

- `any`

### 403 Forbidden Error

The API key is missing or invalid, or the X-Account-Id does not belong to the partner.

- `message` (string, optional)

### 404 Not Found Error

Workspace not found, or no voice integration for this workspace

- `any`

### 500 Internal Server Error

Internal Server Error

- `any`

## Types

### V1WorkspacesWorkspaceIdIntegrationsVoicePatchRequestBodyContentApplicationJsonSchemaVoice

The text-to-speech voice. For the vapi provider set model to null or omit it; for 11labs both voiceId and model are required.

- `provider` (string, optional) — TTS provider, e.g. vapi or 11labs.
- `voiceId` (string, optional) — Provider voice identifier.
- `model` (string, optional, nullable) — TTS model, when the provider requires one.

### V1WorkspacesWorkspaceIdIntegrationsVoicePatchRequestBodyContentApplicationJsonSchemaFallbackVoicesItems

### V1WorkspacesWorkspaceIdIntegrationsVoicePatchRequestBodyContentApplicationJsonSchemaTranscriber

The speech-to-text transcriber.

- `provider` (string, optional) — STT provider, e.g. deepgram.
- `model` (string, optional) — STT model from the catalog.
- `language` (string, optional) — Transcription language code, from the languages of the chosen model.

### V1WorkspacesWorkspaceIdIntegrationsVoicePatchRequestBodyContentApplicationJsonSchemaFallbackTranscribersItems

### V1WorkspacesWorkspaceIdIntegrationsVoicePatchResponsesContentApplicationJsonSchemaVoice

The assistant config after the update — see GET .../integrations/voice for the field notes.

## Examples

### Change only the system prompt

**Request**

```json
{
  "prompt": "You are a concise scheduling assistant for a dental clinic."
}
```

**Response**

```json
{
  "voice": {
    "connected": true,
    "fallbackTranscribers": [],
    "fallbackVoices": [],
    "firstMessage": "Hello! How can I help you today?",
    "phoneNumber": "+14155551234",
    "prompt": "You are a concise scheduling assistant for a dental clinic.",
    "promptSource": "manual",
    "promptTemplate": null,
    "transcriber": {
      "language": "en-US",
      "model": "nova-2-phonecall",
      "provider": "deepgram"
    },
    "voice": {
      "model": null,
      "provider": "vapi",
      "voiceId": "Kai"
    }
  }
}
```

**SDK Code**

```python Change only the system prompt
import requests

url = "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice"

payload = { "prompt": "You are a concise scheduling assistant for a dental clinic." }
headers = {
    "X-Account-Id": "X-Account-Id",
    "Authorization": "Bearer <API_KEY>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Change only the system prompt
const url = 'https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice';
const options = {
  method: 'PATCH',
  headers: {
    'X-Account-Id': 'X-Account-Id',
    Authorization: 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  },
  body: '{"prompt":"You are a concise scheduling assistant for a dental clinic."}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Change only the system prompt
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice"

	payload := strings.NewReader("{\n  \"prompt\": \"You are a concise scheduling assistant for a dental clinic.\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("X-Account-Id", "X-Account-Id")
	req.Header.Add("Authorization", "Bearer <API_KEY>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Change only the system prompt
require 'uri'
require 'net/http'

url = URI("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["X-Account-Id"] = 'X-Account-Id'
request["Authorization"] = 'Bearer <API_KEY>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"prompt\": \"You are a concise scheduling assistant for a dental clinic.\"\n}"

response = http.request(request)
puts response.read_body
```

```java Change only the system prompt
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")
  .header("X-Account-Id", "X-Account-Id")
  .header("Authorization", "Bearer <API_KEY>")
  .header("Content-Type", "application/json")
  .body("{\n  \"prompt\": \"You are a concise scheduling assistant for a dental clinic.\"\n}")
  .asString();
```

```php Change only the system prompt
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice', [
  'body' => '{
  "prompt": "You are a concise scheduling assistant for a dental clinic."
}',
  'headers' => [
    'Authorization' => 'Bearer <API_KEY>',
    'Content-Type' => 'application/json',
    'X-Account-Id' => 'X-Account-Id',
  ],
]);

echo $response->getBody();
```

```csharp Change only the system prompt
using RestSharp;

var client = new RestClient("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice");
var request = new RestRequest(Method.PATCH);
request.AddHeader("X-Account-Id", "X-Account-Id");
request.AddHeader("Authorization", "Bearer <API_KEY>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"prompt\": \"You are a concise scheduling assistant for a dental clinic.\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Change only the system prompt
import Foundation

let headers = [
  "X-Account-Id": "X-Account-Id",
  "Authorization": "Bearer <API_KEY>",
  "Content-Type": "application/json"
]
let parameters = ["prompt": "You are a concise scheduling assistant for a dental clinic."] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Switch the Vapi voice

**Request**

```json
{
  "voice": {
    "provider": "vapi",
    "voiceId": "Kai",
    "model": null
  }
}
```

**Response**

```json
{
  "voice": {
    "connected": true,
    "fallbackTranscribers": [],
    "fallbackVoices": [],
    "firstMessage": "Hello! How can I help you today?",
    "phoneNumber": "+14155551234",
    "prompt": "You are a concise scheduling assistant for a dental clinic.",
    "promptSource": "manual",
    "promptTemplate": null,
    "transcriber": {
      "language": "en-US",
      "model": "nova-2-phonecall",
      "provider": "deepgram"
    },
    "voice": {
      "model": null,
      "provider": "vapi",
      "voiceId": "Kai"
    }
  }
}
```

**SDK Code**

```python Switch the Vapi voice
import requests

url = "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice"

payload = { "voice": {
        "provider": "vapi",
        "voiceId": "Kai",
        "model": None
    } }
headers = {
    "X-Account-Id": "X-Account-Id",
    "Authorization": "Bearer <API_KEY>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Switch the Vapi voice
const url = 'https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice';
const options = {
  method: 'PATCH',
  headers: {
    'X-Account-Id': 'X-Account-Id',
    Authorization: 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  },
  body: '{"voice":{"provider":"vapi","voiceId":"Kai","model":null}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Switch the Vapi voice
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice"

	payload := strings.NewReader("{\n  \"voice\": {\n    \"provider\": \"vapi\",\n    \"voiceId\": \"Kai\",\n    \"model\": null\n  }\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("X-Account-Id", "X-Account-Id")
	req.Header.Add("Authorization", "Bearer <API_KEY>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Switch the Vapi voice
require 'uri'
require 'net/http'

url = URI("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["X-Account-Id"] = 'X-Account-Id'
request["Authorization"] = 'Bearer <API_KEY>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"voice\": {\n    \"provider\": \"vapi\",\n    \"voiceId\": \"Kai\",\n    \"model\": null\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Switch the Vapi voice
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")
  .header("X-Account-Id", "X-Account-Id")
  .header("Authorization", "Bearer <API_KEY>")
  .header("Content-Type", "application/json")
  .body("{\n  \"voice\": {\n    \"provider\": \"vapi\",\n    \"voiceId\": \"Kai\",\n    \"model\": null\n  }\n}")
  .asString();
```

```php Switch the Vapi voice
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice', [
  'body' => '{
  "voice": {
    "provider": "vapi",
    "voiceId": "Kai",
    "model": null
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <API_KEY>',
    'Content-Type' => 'application/json',
    'X-Account-Id' => 'X-Account-Id',
  ],
]);

echo $response->getBody();
```

```csharp Switch the Vapi voice
using RestSharp;

var client = new RestClient("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice");
var request = new RestRequest(Method.PATCH);
request.AddHeader("X-Account-Id", "X-Account-Id");
request.AddHeader("Authorization", "Bearer <API_KEY>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"voice\": {\n    \"provider\": \"vapi\",\n    \"voiceId\": \"Kai\",\n    \"model\": null\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Switch the Vapi voice
import Foundation

let headers = [
  "X-Account-Id": "X-Account-Id",
  "Authorization": "Bearer <API_KEY>",
  "Content-Type": "application/json"
]
let parameters = ["voice": [
    "provider": "vapi",
    "voiceId": "Kai",
    "model": 
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Switch to an ElevenLabs voice (voiceId AND model required)

**Request**

```json
{
  "voice": {
    "provider": "11labs",
    "voiceId": "21m00Tcm4TlvDq8ikWAM",
    "model": "eleven_turbo_v2_5"
  }
}
```

**Response**

```json
{
  "voice": {
    "connected": true,
    "fallbackTranscribers": [],
    "fallbackVoices": [],
    "firstMessage": "Hello! How can I help you today?",
    "phoneNumber": "+14155551234",
    "prompt": "You are a concise scheduling assistant for a dental clinic.",
    "promptSource": "manual",
    "promptTemplate": null,
    "transcriber": {
      "language": "en-US",
      "model": "nova-2-phonecall",
      "provider": "deepgram"
    },
    "voice": {
      "model": null,
      "provider": "vapi",
      "voiceId": "Kai"
    }
  }
}
```

**SDK Code**

```python Switch to an ElevenLabs voice (voiceId AND model required)
import requests

url = "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice"

payload = { "voice": {
        "provider": "11labs",
        "voiceId": "21m00Tcm4TlvDq8ikWAM",
        "model": "eleven_turbo_v2_5"
    } }
headers = {
    "X-Account-Id": "X-Account-Id",
    "Authorization": "Bearer <API_KEY>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Switch to an ElevenLabs voice (voiceId AND model required)
const url = 'https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice';
const options = {
  method: 'PATCH',
  headers: {
    'X-Account-Id': 'X-Account-Id',
    Authorization: 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  },
  body: '{"voice":{"provider":"11labs","voiceId":"21m00Tcm4TlvDq8ikWAM","model":"eleven_turbo_v2_5"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Switch to an ElevenLabs voice (voiceId AND model required)
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice"

	payload := strings.NewReader("{\n  \"voice\": {\n    \"provider\": \"11labs\",\n    \"voiceId\": \"21m00Tcm4TlvDq8ikWAM\",\n    \"model\": \"eleven_turbo_v2_5\"\n  }\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("X-Account-Id", "X-Account-Id")
	req.Header.Add("Authorization", "Bearer <API_KEY>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Switch to an ElevenLabs voice (voiceId AND model required)
require 'uri'
require 'net/http'

url = URI("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["X-Account-Id"] = 'X-Account-Id'
request["Authorization"] = 'Bearer <API_KEY>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"voice\": {\n    \"provider\": \"11labs\",\n    \"voiceId\": \"21m00Tcm4TlvDq8ikWAM\",\n    \"model\": \"eleven_turbo_v2_5\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Switch to an ElevenLabs voice (voiceId AND model required)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")
  .header("X-Account-Id", "X-Account-Id")
  .header("Authorization", "Bearer <API_KEY>")
  .header("Content-Type", "application/json")
  .body("{\n  \"voice\": {\n    \"provider\": \"11labs\",\n    \"voiceId\": \"21m00Tcm4TlvDq8ikWAM\",\n    \"model\": \"eleven_turbo_v2_5\"\n  }\n}")
  .asString();
```

```php Switch to an ElevenLabs voice (voiceId AND model required)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice', [
  'body' => '{
  "voice": {
    "provider": "11labs",
    "voiceId": "21m00Tcm4TlvDq8ikWAM",
    "model": "eleven_turbo_v2_5"
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <API_KEY>',
    'Content-Type' => 'application/json',
    'X-Account-Id' => 'X-Account-Id',
  ],
]);

echo $response->getBody();
```

```csharp Switch to an ElevenLabs voice (voiceId AND model required)
using RestSharp;

var client = new RestClient("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice");
var request = new RestRequest(Method.PATCH);
request.AddHeader("X-Account-Id", "X-Account-Id");
request.AddHeader("Authorization", "Bearer <API_KEY>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"voice\": {\n    \"provider\": \"11labs\",\n    \"voiceId\": \"21m00Tcm4TlvDq8ikWAM\",\n    \"model\": \"eleven_turbo_v2_5\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Switch to an ElevenLabs voice (voiceId AND model required)
import Foundation

let headers = [
  "X-Account-Id": "X-Account-Id",
  "Authorization": "Bearer <API_KEY>",
  "Content-Type": "application/json"
]
let parameters = ["voice": [
    "provider": "11labs",
    "voiceId": "21m00Tcm4TlvDq8ikWAM",
    "model": "eleven_turbo_v2_5"
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Change the transcriber model and language

**Request**

```json
{
  "transcriber": {
    "provider": "deepgram",
    "model": "nova-2-phonecall",
    "language": "en-US"
  }
}
```

**Response**

```json
{
  "voice": {
    "connected": true,
    "fallbackTranscribers": [],
    "fallbackVoices": [],
    "firstMessage": "Hello! How can I help you today?",
    "phoneNumber": "+14155551234",
    "prompt": "You are a concise scheduling assistant for a dental clinic.",
    "promptSource": "manual",
    "promptTemplate": null,
    "transcriber": {
      "language": "en-US",
      "model": "nova-2-phonecall",
      "provider": "deepgram"
    },
    "voice": {
      "model": null,
      "provider": "vapi",
      "voiceId": "Kai"
    }
  }
}
```

**SDK Code**

```python Change the transcriber model and language
import requests

url = "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice"

payload = { "transcriber": {
        "provider": "deepgram",
        "model": "nova-2-phonecall",
        "language": "en-US"
    } }
headers = {
    "X-Account-Id": "X-Account-Id",
    "Authorization": "Bearer <API_KEY>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Change the transcriber model and language
const url = 'https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice';
const options = {
  method: 'PATCH',
  headers: {
    'X-Account-Id': 'X-Account-Id',
    Authorization: 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  },
  body: '{"transcriber":{"provider":"deepgram","model":"nova-2-phonecall","language":"en-US"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Change the transcriber model and language
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice"

	payload := strings.NewReader("{\n  \"transcriber\": {\n    \"provider\": \"deepgram\",\n    \"model\": \"nova-2-phonecall\",\n    \"language\": \"en-US\"\n  }\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("X-Account-Id", "X-Account-Id")
	req.Header.Add("Authorization", "Bearer <API_KEY>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Change the transcriber model and language
require 'uri'
require 'net/http'

url = URI("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["X-Account-Id"] = 'X-Account-Id'
request["Authorization"] = 'Bearer <API_KEY>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"transcriber\": {\n    \"provider\": \"deepgram\",\n    \"model\": \"nova-2-phonecall\",\n    \"language\": \"en-US\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Change the transcriber model and language
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")
  .header("X-Account-Id", "X-Account-Id")
  .header("Authorization", "Bearer <API_KEY>")
  .header("Content-Type", "application/json")
  .body("{\n  \"transcriber\": {\n    \"provider\": \"deepgram\",\n    \"model\": \"nova-2-phonecall\",\n    \"language\": \"en-US\"\n  }\n}")
  .asString();
```

```php Change the transcriber model and language
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice', [
  'body' => '{
  "transcriber": {
    "provider": "deepgram",
    "model": "nova-2-phonecall",
    "language": "en-US"
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <API_KEY>',
    'Content-Type' => 'application/json',
    'X-Account-Id' => 'X-Account-Id',
  ],
]);

echo $response->getBody();
```

```csharp Change the transcriber model and language
using RestSharp;

var client = new RestClient("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice");
var request = new RestRequest(Method.PATCH);
request.AddHeader("X-Account-Id", "X-Account-Id");
request.AddHeader("Authorization", "Bearer <API_KEY>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"transcriber\": {\n    \"provider\": \"deepgram\",\n    \"model\": \"nova-2-phonecall\",\n    \"language\": \"en-US\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Change the transcriber model and language
import Foundation

let headers = [
  "X-Account-Id": "X-Account-Id",
  "Authorization": "Bearer <API_KEY>",
  "Content-Type": "application/json"
]
let parameters = ["transcriber": [
    "provider": "deepgram",
    "model": "nova-2-phonecall",
    "language": "en-US"
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Update greeting, prompt, voice and transcriber together

**Request**

```json
{
  "firstMessage": "Bonjour ! Comment puis-je vous aider ?",
  "prompt": "You are a bilingual (French/English) front-desk assistant for a hotel.",
  "voice": {
    "provider": "11labs",
    "voiceId": "21m00Tcm4TlvDq8ikWAM",
    "model": "eleven_multilingual_v2"
  },
  "transcriber": {
    "provider": "deepgram",
    "model": "nova-2",
    "language": "fr"
  }
}
```

**Response**

```json
{
  "voice": {
    "connected": true,
    "fallbackTranscribers": [],
    "fallbackVoices": [],
    "firstMessage": "Hello! How can I help you today?",
    "phoneNumber": "+14155551234",
    "prompt": "You are a concise scheduling assistant for a dental clinic.",
    "promptSource": "manual",
    "promptTemplate": null,
    "transcriber": {
      "language": "en-US",
      "model": "nova-2-phonecall",
      "provider": "deepgram"
    },
    "voice": {
      "model": null,
      "provider": "vapi",
      "voiceId": "Kai"
    }
  }
}
```

**SDK Code**

```python Update greeting, prompt, voice and transcriber together
import requests

url = "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice"

payload = {
    "firstMessage": "Bonjour ! Comment puis-je vous aider ?",
    "prompt": "You are a bilingual (French/English) front-desk assistant for a hotel.",
    "voice": {
        "provider": "11labs",
        "voiceId": "21m00Tcm4TlvDq8ikWAM",
        "model": "eleven_multilingual_v2"
    },
    "transcriber": {
        "provider": "deepgram",
        "model": "nova-2",
        "language": "fr"
    }
}
headers = {
    "X-Account-Id": "X-Account-Id",
    "Authorization": "Bearer <API_KEY>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Update greeting, prompt, voice and transcriber together
const url = 'https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice';
const options = {
  method: 'PATCH',
  headers: {
    'X-Account-Id': 'X-Account-Id',
    Authorization: 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  },
  body: '{"firstMessage":"Bonjour ! Comment puis-je vous aider ?","prompt":"You are a bilingual (French/English) front-desk assistant for a hotel.","voice":{"provider":"11labs","voiceId":"21m00Tcm4TlvDq8ikWAM","model":"eleven_multilingual_v2"},"transcriber":{"provider":"deepgram","model":"nova-2","language":"fr"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Update greeting, prompt, voice and transcriber together
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice"

	payload := strings.NewReader("{\n  \"firstMessage\": \"Bonjour ! Comment puis-je vous aider ?\",\n  \"prompt\": \"You are a bilingual (French/English) front-desk assistant for a hotel.\",\n  \"voice\": {\n    \"provider\": \"11labs\",\n    \"voiceId\": \"21m00Tcm4TlvDq8ikWAM\",\n    \"model\": \"eleven_multilingual_v2\"\n  },\n  \"transcriber\": {\n    \"provider\": \"deepgram\",\n    \"model\": \"nova-2\",\n    \"language\": \"fr\"\n  }\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("X-Account-Id", "X-Account-Id")
	req.Header.Add("Authorization", "Bearer <API_KEY>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Update greeting, prompt, voice and transcriber together
require 'uri'
require 'net/http'

url = URI("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["X-Account-Id"] = 'X-Account-Id'
request["Authorization"] = 'Bearer <API_KEY>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"firstMessage\": \"Bonjour ! Comment puis-je vous aider ?\",\n  \"prompt\": \"You are a bilingual (French/English) front-desk assistant for a hotel.\",\n  \"voice\": {\n    \"provider\": \"11labs\",\n    \"voiceId\": \"21m00Tcm4TlvDq8ikWAM\",\n    \"model\": \"eleven_multilingual_v2\"\n  },\n  \"transcriber\": {\n    \"provider\": \"deepgram\",\n    \"model\": \"nova-2\",\n    \"language\": \"fr\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Update greeting, prompt, voice and transcriber together
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")
  .header("X-Account-Id", "X-Account-Id")
  .header("Authorization", "Bearer <API_KEY>")
  .header("Content-Type", "application/json")
  .body("{\n  \"firstMessage\": \"Bonjour ! Comment puis-je vous aider ?\",\n  \"prompt\": \"You are a bilingual (French/English) front-desk assistant for a hotel.\",\n  \"voice\": {\n    \"provider\": \"11labs\",\n    \"voiceId\": \"21m00Tcm4TlvDq8ikWAM\",\n    \"model\": \"eleven_multilingual_v2\"\n  },\n  \"transcriber\": {\n    \"provider\": \"deepgram\",\n    \"model\": \"nova-2\",\n    \"language\": \"fr\"\n  }\n}")
  .asString();
```

```php Update greeting, prompt, voice and transcriber together
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice', [
  'body' => '{
  "firstMessage": "Bonjour ! Comment puis-je vous aider ?",
  "prompt": "You are a bilingual (French/English) front-desk assistant for a hotel.",
  "voice": {
    "provider": "11labs",
    "voiceId": "21m00Tcm4TlvDq8ikWAM",
    "model": "eleven_multilingual_v2"
  },
  "transcriber": {
    "provider": "deepgram",
    "model": "nova-2",
    "language": "fr"
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <API_KEY>',
    'Content-Type' => 'application/json',
    'X-Account-Id' => 'X-Account-Id',
  ],
]);

echo $response->getBody();
```

```csharp Update greeting, prompt, voice and transcriber together
using RestSharp;

var client = new RestClient("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice");
var request = new RestRequest(Method.PATCH);
request.AddHeader("X-Account-Id", "X-Account-Id");
request.AddHeader("Authorization", "Bearer <API_KEY>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"firstMessage\": \"Bonjour ! Comment puis-je vous aider ?\",\n  \"prompt\": \"You are a bilingual (French/English) front-desk assistant for a hotel.\",\n  \"voice\": {\n    \"provider\": \"11labs\",\n    \"voiceId\": \"21m00Tcm4TlvDq8ikWAM\",\n    \"model\": \"eleven_multilingual_v2\"\n  },\n  \"transcriber\": {\n    \"provider\": \"deepgram\",\n    \"model\": \"nova-2\",\n    \"language\": \"fr\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Update greeting, prompt, voice and transcriber together
import Foundation

let headers = [
  "X-Account-Id": "X-Account-Id",
  "Authorization": "Bearer <API_KEY>",
  "Content-Type": "application/json"
]
let parameters = [
  "firstMessage": "Bonjour ! Comment puis-je vous aider ?",
  "prompt": "You are a bilingual (French/English) front-desk assistant for a hotel.",
  "voice": [
    "provider": "11labs",
    "voiceId": "21m00Tcm4TlvDq8ikWAM",
    "model": "eleven_multilingual_v2"
  ],
  "transcriber": [
    "provider": "deepgram",
    "model": "nova-2",
    "language": "fr"
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Replace the fallback chain (each entry needs a provider)

**Request**

```json
{
  "fallbackVoices": [
    {
      "provider": "vapi",
      "voiceId": "Emma"
    },
    {
      "provider": "vapi",
      "voiceId": "Clara"
    }
  ],
  "fallbackTranscribers": [
    {
      "language": "en",
      "model": "nova-2-general",
      "provider": "deepgram"
    }
  ]
}
```

**Response**

```json
{
  "voice": {
    "connected": true,
    "fallbackTranscribers": [],
    "fallbackVoices": [],
    "firstMessage": "Hello! How can I help you today?",
    "phoneNumber": "+14155551234",
    "prompt": "You are a concise scheduling assistant for a dental clinic.",
    "promptSource": "manual",
    "promptTemplate": null,
    "transcriber": {
      "language": "en-US",
      "model": "nova-2-phonecall",
      "provider": "deepgram"
    },
    "voice": {
      "model": null,
      "provider": "vapi",
      "voiceId": "Kai"
    }
  }
}
```

**SDK Code**

```python Replace the fallback chain (each entry needs a provider)
import requests

url = "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice"

payload = {
    "fallbackVoices": [
        {
            "provider": "vapi",
            "voiceId": "Emma"
        },
        {
            "provider": "vapi",
            "voiceId": "Clara"
        }
    ],
    "fallbackTranscribers": [
        {
            "language": "en",
            "model": "nova-2-general",
            "provider": "deepgram"
        }
    ]
}
headers = {
    "X-Account-Id": "X-Account-Id",
    "Authorization": "Bearer <API_KEY>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Replace the fallback chain (each entry needs a provider)
const url = 'https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice';
const options = {
  method: 'PATCH',
  headers: {
    'X-Account-Id': 'X-Account-Id',
    Authorization: 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  },
  body: '{"fallbackVoices":[{"provider":"vapi","voiceId":"Emma"},{"provider":"vapi","voiceId":"Clara"}],"fallbackTranscribers":[{"language":"en","model":"nova-2-general","provider":"deepgram"}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Replace the fallback chain (each entry needs a provider)
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice"

	payload := strings.NewReader("{\n  \"fallbackVoices\": [\n    {\n      \"provider\": \"vapi\",\n      \"voiceId\": \"Emma\"\n    },\n    {\n      \"provider\": \"vapi\",\n      \"voiceId\": \"Clara\"\n    }\n  ],\n  \"fallbackTranscribers\": [\n    {\n      \"language\": \"en\",\n      \"model\": \"nova-2-general\",\n      \"provider\": \"deepgram\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("X-Account-Id", "X-Account-Id")
	req.Header.Add("Authorization", "Bearer <API_KEY>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Replace the fallback chain (each entry needs a provider)
require 'uri'
require 'net/http'

url = URI("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["X-Account-Id"] = 'X-Account-Id'
request["Authorization"] = 'Bearer <API_KEY>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"fallbackVoices\": [\n    {\n      \"provider\": \"vapi\",\n      \"voiceId\": \"Emma\"\n    },\n    {\n      \"provider\": \"vapi\",\n      \"voiceId\": \"Clara\"\n    }\n  ],\n  \"fallbackTranscribers\": [\n    {\n      \"language\": \"en\",\n      \"model\": \"nova-2-general\",\n      \"provider\": \"deepgram\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```java Replace the fallback chain (each entry needs a provider)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")
  .header("X-Account-Id", "X-Account-Id")
  .header("Authorization", "Bearer <API_KEY>")
  .header("Content-Type", "application/json")
  .body("{\n  \"fallbackVoices\": [\n    {\n      \"provider\": \"vapi\",\n      \"voiceId\": \"Emma\"\n    },\n    {\n      \"provider\": \"vapi\",\n      \"voiceId\": \"Clara\"\n    }\n  ],\n  \"fallbackTranscribers\": [\n    {\n      \"language\": \"en\",\n      \"model\": \"nova-2-general\",\n      \"provider\": \"deepgram\"\n    }\n  ]\n}")
  .asString();
```

```php Replace the fallback chain (each entry needs a provider)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice', [
  'body' => '{
  "fallbackVoices": [
    {
      "provider": "vapi",
      "voiceId": "Emma"
    },
    {
      "provider": "vapi",
      "voiceId": "Clara"
    }
  ],
  "fallbackTranscribers": [
    {
      "language": "en",
      "model": "nova-2-general",
      "provider": "deepgram"
    }
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <API_KEY>',
    'Content-Type' => 'application/json',
    'X-Account-Id' => 'X-Account-Id',
  ],
]);

echo $response->getBody();
```

```csharp Replace the fallback chain (each entry needs a provider)
using RestSharp;

var client = new RestClient("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice");
var request = new RestRequest(Method.PATCH);
request.AddHeader("X-Account-Id", "X-Account-Id");
request.AddHeader("Authorization", "Bearer <API_KEY>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"fallbackVoices\": [\n    {\n      \"provider\": \"vapi\",\n      \"voiceId\": \"Emma\"\n    },\n    {\n      \"provider\": \"vapi\",\n      \"voiceId\": \"Clara\"\n    }\n  ],\n  \"fallbackTranscribers\": [\n    {\n      \"language\": \"en\",\n      \"model\": \"nova-2-general\",\n      \"provider\": \"deepgram\"\n    }\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Replace the fallback chain (each entry needs a provider)
import Foundation

let headers = [
  "X-Account-Id": "X-Account-Id",
  "Authorization": "Bearer <API_KEY>",
  "Content-Type": "application/json"
]
let parameters = [
  "fallbackVoices": [
    [
      "provider": "vapi",
      "voiceId": "Emma"
    ],
    [
      "provider": "vapi",
      "voiceId": "Clara"
    ]
  ],
  "fallbackTranscribers": [
    [
      "language": "en",
      "model": "nova-2-general",
      "provider": "deepgram"
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Clear all fallbacks (send empty arrays)

**Request**

```json
{
  "fallbackVoices": [],
  "fallbackTranscribers": []
}
```

**Response**

```json
{
  "voice": {
    "connected": true,
    "fallbackTranscribers": [],
    "fallbackVoices": [],
    "firstMessage": "Hello! How can I help you today?",
    "phoneNumber": "+14155551234",
    "prompt": "You are a concise scheduling assistant for a dental clinic.",
    "promptSource": "manual",
    "promptTemplate": null,
    "transcriber": {
      "language": "en-US",
      "model": "nova-2-phonecall",
      "provider": "deepgram"
    },
    "voice": {
      "model": null,
      "provider": "vapi",
      "voiceId": "Kai"
    }
  }
}
```

**SDK Code**

```python Clear all fallbacks (send empty arrays)
import requests

url = "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice"

payload = {
    "fallbackVoices": [],
    "fallbackTranscribers": []
}
headers = {
    "X-Account-Id": "X-Account-Id",
    "Authorization": "Bearer <API_KEY>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Clear all fallbacks (send empty arrays)
const url = 'https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice';
const options = {
  method: 'PATCH',
  headers: {
    'X-Account-Id': 'X-Account-Id',
    Authorization: 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  },
  body: '{"fallbackVoices":[],"fallbackTranscribers":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Clear all fallbacks (send empty arrays)
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice"

	payload := strings.NewReader("{\n  \"fallbackVoices\": [],\n  \"fallbackTranscribers\": []\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("X-Account-Id", "X-Account-Id")
	req.Header.Add("Authorization", "Bearer <API_KEY>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Clear all fallbacks (send empty arrays)
require 'uri'
require 'net/http'

url = URI("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["X-Account-Id"] = 'X-Account-Id'
request["Authorization"] = 'Bearer <API_KEY>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"fallbackVoices\": [],\n  \"fallbackTranscribers\": []\n}"

response = http.request(request)
puts response.read_body
```

```java Clear all fallbacks (send empty arrays)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")
  .header("X-Account-Id", "X-Account-Id")
  .header("Authorization", "Bearer <API_KEY>")
  .header("Content-Type", "application/json")
  .body("{\n  \"fallbackVoices\": [],\n  \"fallbackTranscribers\": []\n}")
  .asString();
```

```php Clear all fallbacks (send empty arrays)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice', [
  'body' => '{
  "fallbackVoices": [],
  "fallbackTranscribers": []
}',
  'headers' => [
    'Authorization' => 'Bearer <API_KEY>',
    'Content-Type' => 'application/json',
    'X-Account-Id' => 'X-Account-Id',
  ],
]);

echo $response->getBody();
```

```csharp Clear all fallbacks (send empty arrays)
using RestSharp;

var client = new RestClient("https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice");
var request = new RestRequest(Method.PATCH);
request.AddHeader("X-Account-Id", "X-Account-Id");
request.AddHeader("Authorization", "Bearer <API_KEY>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"fallbackVoices\": [],\n  \"fallbackTranscribers\": []\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Clear all fallbacks (send empty arrays)
import Foundation

let headers = [
  "X-Account-Id": "X-Account-Id",
  "Authorization": "Bearer <API_KEY>",
  "Content-Type": "application/json"
]
let parameters = [
  "fallbackVoices": [],
  "fallbackTranscribers": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://app.lumenia.net/api/v1/workspaces/workspaceId/integrations/voice")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```