GET api/LocationHierarchy?accountId={accountId}&level={level}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
accountId

integer

Required

level

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of LocationLevel
NameDescriptionTypeAdditional information
Id

integer

None.

ParentId

integer

None.

BaseId

integer

None.

Name

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "ParentId": 2,
    "BaseId": 3,
    "Name": "sample string 4"
  },
  {
    "Id": 1,
    "ParentId": 2,
    "BaseId": 3,
    "Name": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfLocationLevel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Service.Models">
  <LocationLevel>
    <BaseId>3</BaseId>
    <Id>1</Id>
    <Name>sample string 4</Name>
    <ParentId>2</ParentId>
  </LocationLevel>
  <LocationLevel>
    <BaseId>3</BaseId>
    <Id>1</Id>
    <Name>sample string 4</Name>
    <ParentId>2</ParentId>
  </LocationLevel>
</ArrayOfLocationLevel>