GET api/Location/{id}

Gets location by id. Will return empty object if id not found with object.id = 0.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Locations
NameDescriptionTypeAdditional information
Id

integer

None.

CompanyId

integer

None.

Name

string

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "Id": 1,
  "CompanyId": 2,
  "Name": "sample string 3"
}

application/xml, text/xml

Sample:
<Locations xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NiceAPI.Managers">
  <CompanyId>2</CompanyId>
  <Id>1</Id>
  <Name>sample string 3</Name>
</Locations>