Request: GET /department
Permissions to Run the Request
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 departments.
|400||Bad Request||A request error.|
|401||Unauthorized||An authorization error.|
The user doesn't have enough permissions to get the list of departments.