POST api/location/CreateLocation

Request Information

URI Parameters

None.

Body Parameters

Location
NameDescriptionTypeAdditional information
LocationID

integer

None.

CompanyName

string

Required

String length: inclusive between 0 and 100

LocationName

string

Required

String length: inclusive between 0 and 100

LocationShortName

string

Required

String length: inclusive between 0 and 50

CityName

string

String length: inclusive between 0 and 50

StateName

string

String length: inclusive between 0 and 50

CountryName

string

String length: inclusive between 0 and 50

UnitName

string

String length: inclusive between 0 and 50

Address

string

String length: inclusive between 0 and 500

ZIPCode

string

String length: inclusive between 0 and 10

UserName

string

Required

String length: inclusive between 0 and 50

Request Formats

application/json, text/json

Sample:
{
  "LocationID": 1,
  "CompanyName": "sample string 2",
  "LocationName": "sample string 3",
  "LocationShortName": "sample string 4",
  "CityName": "sample string 5",
  "StateName": "sample string 6",
  "CountryName": "sample string 7",
  "UnitName": "sample string 8",
  "Address": "sample string 9",
  "ZIPCode": "sample string 10",
  "UserName": "sample string 11"
}

application/xml, text/xml

Sample:
<Location xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MDMWebAPI.Models">
  <Address>sample string 9</Address>
  <CityName>sample string 5</CityName>
  <CompanyName>sample string 2</CompanyName>
  <CountryName>sample string 7</CountryName>
  <LocationID>1</LocationID>
  <LocationName>sample string 3</LocationName>
  <LocationShortName>sample string 4</LocationShortName>
  <StateName>sample string 6</StateName>
  <UnitName>sample string 8</UnitName>
  <UserName>sample string 11</UserName>
  <ZIPCode>sample string 10</ZIPCode>
</Location>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.