PUT
/
api
/
workers
/
{workerId}
/
deployments
/
voice
/
{deploymentId}
curl --request PUT \
  --url https://brainbase-monorepo-api.onrender.com/api/workers/{workerId}/deployments/voice/{deploymentId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "phoneNumber": "<string>",
  "flowId": "<string>",
  "config": "<string>",
  "successCriteria": "<string>"
}'
{
  "id": "<string>",
  "phoneNumber": "<string>",
  "voiceProvider": "<string>",
  "voiceId": "<string>",
  "agentId": "<string>",
  "externalConfig": {}
}

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required
deploymentId
string
required

Body

application/json

Response

200
application/json

Updated voice deployment

The response is of type object.