PUT api/Phones/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Phone
NameDescriptionTypeAdditional information
AreaCode

string

None.

NpaNxx

string

None.

Id

integer

None.

Number

integer

None.

Extension

integer

None.

Owner

string

String length: inclusive between 0 and 50

Note

string

String length: inclusive between 0 and 100

Name

string

Required

String length: inclusive between 0 and 50

IsPreferred

boolean

None.

PhoneTypeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "AreaCode": "",
  "NpaNxx": "",
  "Id": 1,
  "Number": 2,
  "Extension": 1,
  "Owner": "sample string 3",
  "Note": "sample string 4",
  "Name": "sample string 5",
  "IsPreferred": true,
  "PhoneTypeId": 1
}

application/xml, text/xml

Sample:
<Phone xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OptiPort.Entities.Model">
  <_x003C_Extension_x003E_k__BackingField>1</_x003C_Extension_x003E_k__BackingField>
  <_x003C_Id_x003E_k__BackingField>1</_x003C_Id_x003E_k__BackingField>
  <_x003C_IsPreferred_x003E_k__BackingField>true</_x003C_IsPreferred_x003E_k__BackingField>
  <_x003C_Name_x003E_k__BackingField>sample string 5</_x003C_Name_x003E_k__BackingField>
  <_x003C_Note_x003E_k__BackingField>sample string 4</_x003C_Note_x003E_k__BackingField>
  <_x003C_Number_x003E_k__BackingField>2</_x003C_Number_x003E_k__BackingField>
  <_x003C_Owner_x003E_k__BackingField>sample string 3</_x003C_Owner_x003E_k__BackingField>
  <_x003C_PhoneTypeId_x003E_k__BackingField>1</_x003C_PhoneTypeId_x003E_k__BackingField>
</Phone>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.