Request: GET /department/{departmentId}

Permissions to Run the Request

Account Owner, Account Administrators, Department Administrators, Publishersor custom roles

Department Administrators, Publishers, and users with a custom role can get information only on the department they manage and its enclosed departments.

Request Headers

X-Auth-Account-Url (required)The base URL of the account, e.g. https://myaccount.ispringlearn.com
X-Auth-Email (required)The login of Account Owner,AdministratorDepartment Administrator, Publisher, or a user  with a custom role.
X-Auth-Password (required)The password of Account Owner,AdministratorDepartment Administrator, Publisher, or a user  with a custom role.


Response Parameters

departmentIdThe department ID.
nameThe name of department.
codeThe department code.
subordination (optional)An array with data on the type of department supervisor subordination.
coSubordination (optional)An array with data on the type of functional manager subordination.
subordinationType (required)

The type of supervisor and functional manager subordination.

  • inherit — Inherit from parent department.
  • manual — Assign manually.
  • no_supervisor — No supervisor.
supervisorId (optional)The supervisor and functional manager ID.Specify the supervisor ID, if subordinationType = manual.
-If subordinationType = inherit, no_supervisor, there is no need to specify the supervisor ID.

Possible Response Codes


The request was successfully processed. The response body contains xml info on the department.

400Bad RequestA request error.
401UnauthorizedAn authorization error.
403Permission Denied

The user doesn't have enough permissions to get information on the department.

Sample Request

GET /department/d479bc48-5b70-11e9-b123-22e9fbac4a59 https/1.1
Host: api-learn.ispringlearn.com
X-Auth-Account-Url: https://myaccount.ispringlearn.com
X-Auth-Email: email@email.com
X-Auth-Password: password

Sample Response

https/1.1 200 OK

<?xml version="1.0"?>
    <name>Sales Department</name>