Delete Department
Description
You can use this API to delete a particular department.
Query Params
- configure_to: You can use this to transfer the operators and embed chats to other departments before deleting a department. (Mandatory)
OAuth Scope:
SalesIQ.departments.DELETE
URL
Copiedhttps://{[zohosalesiq_server_uri](https://www.zoho.com/salesiq/help/developer-section/rest-api-v2.html)}/api/v2/<screen name>/departments/<department_id>
Example
Copiedhttps://salesiq.zoho.com/api/v2/zylker-inc/departments/32180000000016037
Error Response
This type of response occurs in case if the given configure_to department ID is Private and the transferring ID is public. Since the private department details cannot be transferred to a public department this error is thrown. code : 1302Error Message : "Public department cannot be configured to a Private department"