POST api/Dialer/AddSipAndLine

Request Information

URI Parameters

None.

Body Parameters

SipPost
NameDescriptionTypeAdditional information
sipID

integer

None.

line_key

string

None.

registrationRequired

boolean

None.

displayName

string

None.

userName

string

None.

authenticationId

string

None.

registerPassword

string

None.

domainHost

string

None.

domainPort

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "sipID": 1,
  "line_key": "sample string 2",
  "registrationRequired": true,
  "displayName": "sample string 4",
  "userName": "sample string 5",
  "authenticationId": "sample string 6",
  "registerPassword": "sample string 7",
  "domainHost": "sample string 8",
  "domainPort": 9
}

application/xml, text/xml

Sample:
<SipPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DialerAPI.Models.Sip">
  <authenticationId>sample string 6</authenticationId>
  <displayName>sample string 4</displayName>
  <domainHost>sample string 8</domainHost>
  <domainPort>9</domainPort>
  <line_key>sample string 2</line_key>
  <registerPassword>sample string 7</registerPassword>
  <registrationRequired>true</registrationRequired>
  <sipID>1</sipID>
  <userName>sample string 5</userName>
</SipPost>

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 'SipPost'.

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>