PUT api/Phones/UpdateClientPhone?phoneId={phoneId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
phoneId

integer

Required

Body Parameters

UpdateClientPhoneDto
NameDescriptionTypeAdditional information
PhoneNumber

integer

Required

Matching regular expression pattern: ^[0-9]{10}$

PhoneExt

integer

None.

Name

string

Required

String length: inclusive between 0 and 50

Note

string

String length: inclusive between 0 and 100

IsPreferred

boolean

None.

PhoneTypeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PhoneNumber": 1,
  "PhoneExt": 1,
  "Name": "sample string 2",
  "Note": "sample string 3",
  "IsPreferred": true,
  "PhoneTypeId": 5
}

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

Response Information

Resource Description

ApiResponse
NameDescriptionTypeAdditional information
Message

string

None.

Result

Object

None.

StatusCode

integer

None.

StatusGroup

string

None.

Details

Collection of Object

None.

Response Formats

application/json, text/json

Sample:

Sample not available.