Skip to main content
POST
/
voicelink
/
call-routing
/
{routing_id}
Update VoiceLink call routing
curl --request POST \
  --url https://api.vocobase.com/api/v2/voicelink/call-routing/{routing_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "connection_id": "9b7f1c44-c87f-4f0c-9124-3c802a9c1a20",
  "for_inbound_call": 1,
  "for_outbound_call": 3,
  "outbound_websocket_bot_id": 93,
  "status": 1
}
'
{
  "success": true,
  "data": {}
}

Authorizations

Authorization
string
header
required

API key in format: rg_live_xxxx. Pass as a Bearer token in the Authorization header.

Path Parameters

routing_id
integer
required

VoiceLink call-routing record ID.

Required range: x >= 1

Body

application/json

VoiceLink routing update REPLACES the record — resend every field you want kept, including current inbound values when you only intend to change outbound routing.

for_inbound_call
integer
required

VoiceLink inbound mode: 1 mobile, 2 SIP, 3 WebSocket bot. Resend the current value to preserve inbound routing.

Required range: x >= 0
for_outbound_call
integer
required

VoiceLink outbound mode: 2 SIP, 3 WebSocket bot, 4 only-answer.

Required range: x >= 0
status
enum<integer>
required

Routing status: 1 active, 0 inactive.

Available options:
0,
1
connection_id
string<uuid>

Optional unless multiple active VoiceLink connections exist. connectionId is accepted for backwards compatibility.

inbound_websocket_bot_id
integer

VoiceLink bot ID when for_inbound_call is 3.

Required range: x >= 1
inbound_sip_trunk_id
integer

VoiceLink SIP trunk ID when for_inbound_call is 2.

Required range: x >= 1
outbound_websocket_bot_id
integer

VoiceLink bot ID when for_outbound_call is 3.

Required range: x >= 1
outbound_sip_trunk_id
integer

VoiceLink SIP trunk ID when for_outbound_call is 2.

Required range: x >= 1

Response

VoiceLink call routing updated.

A VoiceLink upstream response wrapped in the V2 success envelope. The data shape is forwarded from VoiceLink and may vary by endpoint.

success
boolean
required
data
required

VoiceLink upstream response body.