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

integer

None.

LocationDepartment1

string

None.

SystemDefined

boolean

None.

Visible

boolean

None.

LocationID

integer

None.

ParentId

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>