POST api/Phones/AddLocationPhoneInfo

Request Information

URI Parameters

None.

Body Parameters

CreateLocationPhoneInfoDto
NameDescriptionTypeAdditional information
LocationId

integer

Required

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:
{
  "LocationId": 1,
  "PhoneNumber": 2,
  "PhoneExt": 1,
  "Name": "sample string 3",
  "Note": "sample string 4",
  "IsPreferred": true,
  "PhoneTypeId": 6
}

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

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.