Account Owner, Account Administrators, Department Administrators, or custom roles.
Department Administrators, and users with a custom role can get information only on the department they manage and its enclosed departments.
You can't delete a department if:
|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.|
The password of Account Owner,Administrator, Department Administrator, Publisher, or a user with a custom role.
|department_id||The ID of the department you want to delete.|
Possible Response Codes
The requested department has been deleted.
|400||Bad Request||A request error.|
|401||Unauthorized||An authorization error.|
The user doesn't have enough permissions to remove the department.
DELETE /department/be676588-5448-11e9-b7f7-62fb686e6fbe 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 204 Successful operation Connection: close