Delete Operator from Department
Description
You can use this API to delete an operator from a department.
Query Params
- ids: Operator IDs (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}/operators
Example
Copiedhttps://salesiq.zoho.com/api/v2/zylker-inc/departments/32180000000016037/operators/operators?ids=15990000000002001
Success Response
Copied{
"url": "/api/v2/zylker-inc/departments/32308000000002013",
"object": "department",
"data": {
"email_configurations": {
"missedchat_recipients": "",
"feedback_recipients": "",
"is_missedchat_mail_enabled": "true",
"is_cc_mail_enabled": "true",
"from_email": "",
"is_transcript_mail_enabled": "true",
"transcript_recipients": "",
"is_blockip_mail_enabled": "true",
"blockip_recipients": "",
"cc_recipients": "",
"is_feedback_mail_enabled": "true"
},
"modified_time": "1524140963982",
"name": "zylker-inc",
"id": "32308000000002013",
"is_enabled": "true",
"operators": [
"32308000000002001",
"32308000000003031"
],
"created_by": "32308000000002001",
"is_public": "true",
"is_system_generated": "true",
"created_time": "1524140963982",
"description": "Stylish brand of the world",
"image_url": "/api/v2/zylker/downloads/1526214218274_33290000000002013?purpose=department_image",
"display_name": "resttestportal"
}
}
Error Response
This type of response occurs in case if the operator we are to delete is the only operator enabled in the department. code : 1301Error Message : "Operator has to be associated in any other department to be removed from this department"