POST PhoneApi/PhoneUpdate

Request Information

URI Parameters

None.

Body Parameters

PhoneAddVM
NameDescriptionTypeAdditional information
ID

integer

None.

PhoneNumber

string

None.

Description

string

None.

ProviderUniqueCode

string

None.

PhoneDisplay

string

None.

IsMainLine

boolean

None.

PhoneProviderID

integer

None.

CompanyID

integer

None.

NotificationSMS

boolean

None.

NotificationEmail

boolean

None.

NotificationLimitBalance

integer

None.

PhoneSelectVM

Collection of PhoneSelectVM

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "PhoneNumber": "sample string 2",
  "Description": "sample string 3",
  "ProviderUniqueCode": "sample string 4",
  "PhoneDisplay": "sample string 5",
  "IsMainLine": true,
  "PhoneProviderID": 7,
  "CompanyID": 8,
  "NotificationSMS": true,
  "NotificationEmail": true,
  "NotificationLimitBalance": 11,
  "PhoneSelectVM": [
    {
      "ID": 1,
      "Name": "sample string 2"
    },
    {
      "ID": 1,
      "Name": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<PhoneAddVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RegexPoint.Models.Phone">
  <CompanyID>8</CompanyID>
  <Description>sample string 3</Description>
  <ID>1</ID>
  <IsMainLine>true</IsMainLine>
  <NotificationEmail>true</NotificationEmail>
  <NotificationLimitBalance>11</NotificationLimitBalance>
  <NotificationSMS>true</NotificationSMS>
  <PhoneDisplay>sample string 5</PhoneDisplay>
  <PhoneNumber>sample string 2</PhoneNumber>
  <PhoneProviderID>7</PhoneProviderID>
  <PhoneSelectVM>
    <PhoneSelectVM>
      <ID>1</ID>
      <Name>sample string 2</Name>
    </PhoneSelectVM>
    <PhoneSelectVM>
      <ID>1</ID>
      <Name>sample string 2</Name>
    </PhoneSelectVM>
  </PhoneSelectVM>
  <ProviderUniqueCode>sample string 4</ProviderUniqueCode>
</PhoneAddVM>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.