Next Topic

Previous Topic

Book Contents

Get Departments

Returns an array of department records for a specified organization.

GET /system/orgs/{orgId}/departments

Headers

Model Schema

Field

Datatype

Filterable

Sortable

DepartmentId

decimal

DepartmentName

string

ParentDepartmentId

decimal

 

ManagerId

decimal

OrgId

decimal

DepartmentRef

string

 

Attributes

object

 

Sample Response Model

{
  "TotalRecords": 0,
  "Result": [
    {
      "DepartmentId": 0,
      "DepartmentName": "string",
      "ParentDepartmentId": 0,
      "ManagerId": 0,
      "OrgId": 0,
      "DepartmentRef": "string",
      "Attributes": {}
    }
  ],
  "ResponseCode": 0,
  "Status": "string",
  "Error": "string"
}