POST api/Locations/AddAddress

Request Information

URI Parameters

None.

Body Parameters

CreateLocationAddressDto
NameDescriptionTypeAdditional information
LocationId

integer

Required

Line1

string

Required

String length: inclusive between 0 and 100

Line2

string

String length: inclusive between 0 and 100

City

string

Required

String length: inclusive between 0 and 50

State

string

Required

String length: inclusive between 0 and 2

Zip

string

Required

String length: inclusive between 0 and 5

Name

string

String length: inclusive between 0 and 50

IsShipping

boolean

None.

AddressTypeId

integer

None.

IsPrimary

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "LocationId": 1,
  "Line1": "sample string 2",
  "Line2": "sample string 3",
  "City": "sample string 4",
  "State": "sample string 5",
  "Zip": "sample string 6",
  "Name": "sample string 7",
  "IsShipping": true,
  "AddressTypeId": 9,
  "IsPrimary": true
}

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

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.