This page was last edited on February 15, 2024, at 19:11.
Comments or questions about this documentation? Contact us for support!
This operation is part of the Voice API section of the Web Services API.
Sets call forwarding on the device to the specified destination.
Request URL | /api/v2/me/calls/{id} |
---|---|
HTTP method | POST |
Required features | api-voice |
Parameter | Value |
---|---|
operationName | ForwardCallsOn |
destination | The number where Web Services should forward calls. |
POST api/v2/me/devices/efe1ab32-53f9-43ce-b65e-5768c61f7d4a
{
"operationName": "ForwardCallsOn",
"destination": "5001"
}
{
"statusCode": 0
}
{
"data": {
"messageType": "DeviceStateChangeMessage",
"devices": [
{
"id": "efe1ab32-53f9-43ce-b65e-5768c61f7d4a",
"deviceState": "Active",
"userState": {
"id": "9430250E-0A1B-421F-B372-F29E69366DED",
"displayName": "Ready",
"state": "Ready"
},
"phoneNumber": "5005",
"e164Number": "5005",
"telephonyNetwork": "Private",
"doNotDisturb": "Off",
"forwardTo": "5001",
"voiceEnvironmentUri": "http://127.0.0.1:8080/api/v2/voice-environments/370ef5e6-9e3c-4d91-9588-7f4dfe67e011",
"capabilities": [
"ForwardCallsOff",
"DoNotDisturbOn",
"ListenIn",
"Coach",
"BargeIn"
]
}
]
},
"channel": "/v2/me/devices"
}