PUT api/v1/general/phones/phone

Request Information

URI Parameters

None.

Body Parameters

PhoneModel
NameDescriptionTypeAdditional information
OwnerId

globally unique identifier

None.

Phone

string

Required

Id

integer

None.

Type

byte

None.

Request Formats

application/json, text/json

Sample:
{
  "OwnerId": "ea630914-292e-4a16-9750-3e3389959f7f",
  "Phone": "sample string 2",
  "Id": 3,
  "Type": 64
}

application/xml, text/xml

Sample:
<PhoneModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models">
  <Id>3</Id>
  <OwnerId>ea630914-292e-4a16-9750-3e3389959f7f</OwnerId>
  <Phone>sample string 2</Phone>
  <Type>64</Type>
</PhoneModel>

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

Response Information

Resource Description

PhoneModel
NameDescriptionTypeAdditional information
OwnerId

globally unique identifier

None.

Phone

string

Required

Id

integer

None.

Type

byte

None.

Response Formats

application/json, text/json

Sample:
{
  "OwnerId": "59b1a63f-c0e4-4453-baeb-d8988816d3f1",
  "Phone": "sample string 2",
  "Id": 3,
  "Type": 64
}

application/xml, text/xml

Sample:
<PhoneModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models">
  <Id>3</Id>
  <OwnerId>59b1a63f-c0e4-4453-baeb-d8988816d3f1</OwnerId>
  <Phone>sample string 2</Phone>
  <Type>64</Type>
</PhoneModel>