Skip to main content

Associate Operators to Departments 

Description

This API can be used to associate the operators to the available departments. 

Requested Payload:

  • ids - To fetch the ArrayList of the department IDs (Mandatory)

OAuth Scope:

SalesIQ.operators.UPDATE

URL:

Copiedhttps://{zohosalesiq_server_uri}/api/v2/{screen name}/operators/{operator id}/departments

Example:

Copiedhttps://salesiq.zoho.com/api/v2/zylker-inc/operators/32308000000003031/departments

Payload

Copied{
	 "ids" : ["38000000000017", "38000000000019", "38000000000021"]
}

Success Response

Copied{
  "url": "/api/v2/zylker-inc/operators/32308000000003031",
  "object": "operator",
  "data": {
    "date_of_birth": "",
    "is_chat_enabled": "true",
    "first_name": "Patricia",
    "mobile": "009876543467",
    "nick_name": "patty",
    "state": "Texas",
    "email_id": "patricia@zylker.com",
    "phone": "",
    "status_code": "1",
    "pin_code": "",
    "status_message": "Available",
    "street": "",
    "maximum_concurrent_chat": "10",
    "is_owner": "false",
    "id": "30000000000005",
    "is_confirmed": "false",
    "country": "us",
    "language": "en",
    "is_deleted": "false",
    "city": "Austin",
    "description": "Hi! I'm Patricia. You can ask your queries and they'll be answered in a jiffy!",
    "last_name": "Boyle",
    "created_time": "1524458507054",
    "messenger_id": "PB_5492040_30000000000005",
    "modifed_time": "1524458507054",
    "departments": [
      "30000000000017"
    ],
    "time_zone": "",
    "role": "Administrator",
    "image_url": "/api/v2/zylker-inc/downloads/45aab034a5d2329451f11b2448d12aab8fd1f3b5222ce6f1?purpose=operator_image"
  }
}