Edit an Inbound Route
Edit basic settings of an inbound route.
Request URL
{base_url}/{api_path}/inroute/update?token={token}
Request parameters
Parameter | Required | Type | Description |
---|---|---|---|
id | Yes | Integer | The unique ID of an inbound route. |
name | No | String | The name of an inbound route. |
did | No | String | DID pattern. |
caller_id | No | String | Caller ID pattern. |
trunks | No | String | Trunk name. Separate multiple trunk names with
, .Example:
|
desttype | No | String | Destination type. Valid values:
|
dest | No | String | The specific destination. |
Response parameters
Parameter | Type | Description |
---|---|---|
status | String | Request result.
|
Examples
Request example
POST /api/v2.0.0/inroute/update?token=277ac400357b509b4a587ff2157f7ad5 Content-Type:application/json; charset=utf-8 Host: 192.168.5.150 { "id": "8", "name": "trunk1", "trunks": "Siptrunk", "desttype": "hangup" }
Response example
HTTP/1.1 200 OK Server: Boa/0.94.14rc21 Accept-Ranges: bytes Connection: close Content-Type: application/json Access-control-allow-origin: * Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE { "status": "Success" }