PUT api/locations/{locationID}

Puts the location.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
locationID

The location identifier.

integer

Required

Body Parameters

The location.

location
NameDescriptionTypeAdditional information
city

Gets or sets the city.

string

None.

country

Gets or sets the country.

string

None.

countryCode

Gets or sets the country code.

string

None.

email

Gets or sets the email.

string

None.

fax

Gets or sets the fax.

string

None.

lat

Gets or sets the lat.

decimal number

None.

lng

Gets or sets the LNG.

decimal number

None.

locationName

Gets or sets the name of the location.

string

None.

phone

Gets or sets the phone.

string

None.

regionName

Gets or sets the name of the region.

string

None.

regional_address_1

Gets or sets the regional address 1.

string

None.

regional_address_2

Gets or sets the regional address 2.

string

None.

stateCode

Gets or sets the state code.

string

None.

state

Gets or sets the state.

string

None.

zipCode

Gets or sets the zip code.

string

None.

regionID

Gets or sets the region identifier.

integer

None.

isRegional

Gets or sets the is regional.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "city": "sample string 1",
  "country": "sample string 2",
  "countryCode": "sample string 3",
  "email": "sample string 4",
  "fax": "sample string 5",
  "lat": 1.1,
  "lng": 1.1,
  "locationName": "sample string 6",
  "phone": "sample string 7",
  "regionName": "sample string 8",
  "regional_address_1": "sample string 9",
  "regional_address_2": "sample string 10",
  "stateCode": "sample string 11",
  "state": "sample string 12",
  "zipCode": "sample string 13",
  "regionID": 14,
  "isRegional": "sample string 15"
}

text/html

Sample:
{"city":"sample string 1","country":"sample string 2","countryCode":"sample string 3","email":"sample string 4","fax":"sample string 5","lat":1.1,"lng":1.1,"locationName":"sample string 6","phone":"sample string 7","regionName":"sample string 8","regional_address_1":"sample string 9","regional_address_2":"sample string 10","stateCode":"sample string 11","state":"sample string 12","zipCode":"sample string 13","regionID":14,"isRegional":"sample string 15"}

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

Response Information

Resource Description

location
NameDescriptionTypeAdditional information
city

Gets or sets the city.

string

None.

country

Gets or sets the country.

string

None.

countryCode

Gets or sets the country code.

string

None.

email

Gets or sets the email.

string

None.

fax

Gets or sets the fax.

string

None.

lat

Gets or sets the lat.

decimal number

None.

lng

Gets or sets the LNG.

decimal number

None.

locationName

Gets or sets the name of the location.

string

None.

phone

Gets or sets the phone.

string

None.

regionName

Gets or sets the name of the region.

string

None.

regional_address_1

Gets or sets the regional address 1.

string

None.

regional_address_2

Gets or sets the regional address 2.

string

None.

stateCode

Gets or sets the state code.

string

None.

state

Gets or sets the state.

string

None.

zipCode

Gets or sets the zip code.

string

None.

regionID

Gets or sets the region identifier.

integer

None.

isRegional

Gets or sets the is regional.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "city": "sample string 1",
  "country": "sample string 2",
  "countryCode": "sample string 3",
  "email": "sample string 4",
  "fax": "sample string 5",
  "lat": 1.1,
  "lng": 1.1,
  "locationName": "sample string 6",
  "phone": "sample string 7",
  "regionName": "sample string 8",
  "regional_address_1": "sample string 9",
  "regional_address_2": "sample string 10",
  "stateCode": "sample string 11",
  "state": "sample string 12",
  "zipCode": "sample string 13",
  "regionID": 14,
  "isRegional": "sample string 15"
}

text/html

Sample:
{"city":"sample string 1","country":"sample string 2","countryCode":"sample string 3","email":"sample string 4","fax":"sample string 5","lat":1.1,"lng":1.1,"locationName":"sample string 6","phone":"sample string 7","regionName":"sample string 8","regional_address_1":"sample string 9","regional_address_2":"sample string 10","stateCode":"sample string 11","state":"sample string 12","zipCode":"sample string 13","regionID":14,"isRegional":"sample string 15"}