PUT api/orgPhone/{id}

Update an existing record from the Phones table.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

orgPhoneDb
NameDescriptionTypeAdditional information
PhoneID

integer

None.

PhoneTypeID

byte

None.

PhoneNumber

string

Max length: 30

Comment

string

Max length: 240

IsActive

boolean

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
{
  "results": null,
  "PhoneID": 1,
  "PhoneTypeID": 64,
  "PhoneNumber": "sample string 2",
  "Comment": "sample string 3",
  "IsActive": true,
  "CreatedBy": 5,
  "CreatedDate": "2025-12-06T23:39:57.3116629+00:00",
  "UpdatedBy": 7,
  "UpdatedDate": "2025-12-06T23:39:57.3116629+00:00"
}

application/xml, text/xml

Sample:
<orgPhoneDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <Comment>sample string 3</Comment>
  <CreatedBy>5</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:57.3116629Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <IsActive>true</IsActive>
  <PhoneID>1</PhoneID>
  <PhoneNumber>sample string 2</PhoneNumber>
  <PhoneTypeID>64</PhoneTypeID>
  <UpdatedBy>7</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:57.3116629Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</orgPhoneDb>

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

Response Information

Resource Description

orgPhoneDb
NameDescriptionTypeAdditional information
PhoneID

integer

None.

PhoneTypeID

byte

None.

PhoneNumber

string

Max length: 30

Comment

string

Max length: 240

IsActive

boolean

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Response Formats

application/json, text/json

Sample:
{
  "results": null,
  "PhoneID": 1,
  "PhoneTypeID": 64,
  "PhoneNumber": "sample string 2",
  "Comment": "sample string 3",
  "IsActive": true,
  "CreatedBy": 5,
  "CreatedDate": "2025-12-06T23:39:57.3126559+00:00",
  "UpdatedBy": 7,
  "UpdatedDate": "2025-12-06T23:39:57.3126559+00:00"
}

application/xml, text/xml

Sample:
<orgPhoneDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <Comment>sample string 3</Comment>
  <CreatedBy>5</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:57.3126559Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <IsActive>true</IsActive>
  <PhoneID>1</PhoneID>
  <PhoneNumber>sample string 2</PhoneNumber>
  <PhoneTypeID>64</PhoneTypeID>
  <UpdatedBy>7</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:57.3126559Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</orgPhoneDb>