Access Keys:
Skip to content (Access Key - 0)
Live Chat

Get all the Available Departments

Skip to end of metadata
Go to start of metadata
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
For information regarding the entities used in the Departments CRUD, please visit Entities Used in Departments CRUD page.

You can get the list of all the available departments by using the following command(s):

Commands:

GET /em/api/departments
GET /em/api/departments.xml
GET /em/api/departments.js

Response in XML:

HTTP/1.0 200 OK
<list>
  <department>
    <id>4028807b2b09fc5b012b09fdfb3e0001</id>
    <displayName>sale</displayName>
    <members>
      <string>lex</string>
    </members>
  </department>
</list>

Response in JSON:

HTTP/1.0 200 OK
[
  {id : "4028807b2b09fc5b012b09fdfb3e0001", displayName : "sale", members : ["lex"]}
]
Adaptavist Theme Builder (4.2.0) Powered by Atlassian Confluence 3.3, the Enterprise Wiki