Edit an Inboud Route

Edit the basic settings of an inbound route.

Endpoint

POST /api/v1.1.0/inroute/update?token={token}

Request Parameters

Name Importance Type Description
name Required String Inbound route name.
did Optional String DID pattern.
caller_id Optional String Caller ID pattern.
trunks Required String Trunk name. Separate multiple trunks with ,.

Example: "trunks":"trunk1,trunk2"

desttype Required String Destination type:
  • hangup
  • extension
  • extrange
  • voicemail
  • ivr
  • ringgroup
  • queue
  • conference
  • disa
  • callback
  • outroute
  • faxtoemail
dest Required String The specific destination.

Examples

Request Example

POST /api/v1.1.0/inroute/update?token=277ac400357b509b4a587ff2157f7ad5 HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: api.yeastarcloud.com
{
    "id": "1",
    "name": "Routein",
    "did": "10.",
    "caller_id": "",
    "trunks": "siptrunk",
    "desttype": "ivr",
    "dest": "6500"
}

Response Example

HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
    "status": "Success"
}