Account Owner, Account Administrators, Department Administrators, Publishers, or custom roles.
Department Administrators, Publishers, and users with a custom role can get information only on the department they manage and its enclosed departments.
|X-Auth-Account-Url (required)||The base URL of the account, e.g. http://myaccount.ispringlearn.com|
|X-Auth-Email (required)||The login of Account Owner,Administrator, Department Administrator, Publisher, or a user with a custom role.|
|X-Auth-Password (required)||The password of Account Owner,Administrator, Department Administrator, Publisher, or a user with a custom role.|
Possible Response Codes
The request was successfully processed. The response code contains xml info on the department.
|400||Bad Request||A request error.|
|401||Unauthorized||An authorization error.|
The user doesn't have enough permissions to get information on the department.
GET /department/d479bc48-5b70-11e9-b123-22e9fbac4a59 HTTP/1.1 Host: api-learn.ispringlearn.com X-Auth-Account-Url: https://myaccount.ispringlearn.com X-Auth-Email: firstname.lastname@example.org X-Auth-Password: password
HTTP/1.1 200 Successful operation Connection: close <?xml version="1.0"?> <response> <department> <departmentId>d479bc48-5b70-11e9-b123-22e9fbac4a59</departmentId> <name>Sales Department</name> <parentDepartmentId>b00ba37c-5b6f-11e9-bb45-0a580af40556</parentDepartmentId> <code>5</code> </department> </response>