Edit an Inbound Route

Edit basic settings of an inbound route.

Request URL


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: "trunks":"trunk1,trunk2"

desttype No String Destination type.

Valid values:

  • hangup
  • extension
  • extrange
  • voicemail
  • ivr
  • ringgroup
  • queue
  • conference
  • disa
  • callback
  • outroute
  • faxtoemail
dest No String The specific destination.

Response parameters

Parameter Type Description
status String Request result.
  • Success
  • Failed


Request example

POST /api/v2.0.0/inroute/update?token=277ac400357b509b4a587ff2157f7ad5
Content-Type:application/json; charset=utf-8

	"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"