POST api/Dialer/AddCall

Request Information

URI Parameters

None.

Body Parameters

CallPost
NameDescriptionTypeAdditional information
call_key

string

None.

line_key

string

None.

number

string

None.

connect_to_call_key

string

None.

connect_from_call_key

string

None.

Request Formats

application/json, text/json

Sample:
{
  "call_key": "sample string 1",
  "line_key": "sample string 2",
  "number": "sample string 3",
  "connect_to_call_key": "sample string 4",
  "connect_from_call_key": "sample string 5"
}

application/xml, text/xml

Sample:
<CallPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DialerAPI.Models.Call">
  <call_key>sample string 1</call_key>
  <connect_from_call_key>sample string 5</connect_from_call_key>
  <connect_to_call_key>sample string 4</connect_to_call_key>
  <line_key>sample string 2</line_key>
  <number>sample string 3</number>
</CallPost>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CallPost'.

Response Information

Resource Description

DefaultResultModel
NameDescriptionTypeAdditional information
success

boolean

None.

error

DefaultResultErrorModel

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "error": {
    "message": "sample string 1",
    "stacktrace": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<DefaultResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DialerAPI.Models">
  <error>
    <message>sample string 1</message>
    <stacktrace>sample string 2</stacktrace>
  </error>
  <success>true</success>
</DefaultResultModel>