GET v1/Locations/{locationID}/Contacts/Departments

Get a list of Departments

Request Information

URI Parameters

NameDescriptionTypeAdditional information
locationID

Id of the location

string

Required

Body Parameters

None.

Response Information

Resource Description

List of departments

Collection of LocationDepartmentDTO
NameDescriptionTypeAdditional information
LocationDepartementID

Id of the location department

integer

None.

LocationDepartment1

Location department 1

string

None.

SystemDefined

Signifies whether the location department is system defined

boolean

None.

Visible

Signifies whether the location department is visible

boolean

None.

LocationID

Id of the location

integer

None.

ParentId

Id of the parent

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "LocationDepartementID": 1,
    "LocationDepartment1": "sample string 2",
    "SystemDefined": true,
    "Visible": true,
    "LocationID": 1,
    "ParentId": 1
  },
  {
    "LocationDepartementID": 1,
    "LocationDepartment1": "sample string 2",
    "SystemDefined": true,
    "Visible": true,
    "LocationID": 1,
    "ParentId": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfLocationDepartmentDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Locations">
  <LocationDepartmentDTO>
    <LocationDepartementID>1</LocationDepartementID>
    <LocationDepartment1>sample string 2</LocationDepartment1>
    <LocationID>1</LocationID>
    <ParentId>1</ParentId>
    <SystemDefined>true</SystemDefined>
    <Visible>true</Visible>
  </LocationDepartmentDTO>
  <LocationDepartmentDTO>
    <LocationDepartementID>1</LocationDepartementID>
    <LocationDepartment1>sample string 2</LocationDepartment1>
    <LocationID>1</LocationID>
    <ParentId>1</ParentId>
    <SystemDefined>true</SystemDefined>
    <Visible>true</Visible>
  </LocationDepartmentDTO>
</ArrayOfLocationDepartmentDTO>