PUT api/location/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

CompanyLocationVM
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

Required

String length: inclusive between 0 and 100

Address

string

Required

String length: inclusive between 0 and 500

Location

DbGeography

None.

Primary

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Address": "sample string 3",
  "Location": null,
  "Primary": true
}

application/xml, text/xml

Sample:
<CompanyLocationVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AWaiver.Models">
  <Address>sample string 3</Address>
  <Id>1</Id>
  <Location xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Data.Entity.Spatial" i:nil="true" />
  <Name>sample string 2</Name>
  <Primary>true</Primary>
</CompanyLocationVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.