Skip to product menu
Skip to main content

Get List of All the Departments

Description

You can use this API to get a list of all the departments in the portal.

Query Parameters

  • last_sync_time: To retrieve the list of departments that have been modified after the provided time
  • index: As the operator list is limited to 20 per fetch, you can use this param to fetch the next set of operators.

    Note: If the index is not provided, then it will be taken as 1 by default.

OAuth Scope:

SalesIQ.departments.READ

URL

Copiedhttps://{zohosalesiq_server_uri}/api/v2/{screen name}/departments

Example

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

Success Response

Copied{
  "url": "/api/v2/zylker-inc/departments",
  "object": "list",
  "CRC": "3033299196",
  "data": [
    {
      "modified_time": "1524140963982",
      "name": "zylker-furnitures",
      "id": "32308000000002013",
      "is_enabled": "true",
      "created_by": "32308000000002001",
      "is_public": "true",
      "is_system_generated": "true",
      "created_time": "1524140963982",
      "description": "World's best furniture brand",
      "display_name": "Zylker Furnitures"
    },
    {
      "modified_time": "1524153090418",
      "name": "Zylker-Fashions",
      "id": "32308000000004023",
      "is_enabled": "true",
      "created_by": "32308000000003031",
      "is_public": "true",
      "is_system_generated": "false",
      "created_time": "1524145532849",
      "description": "World's best available fashion brand",
      "display_name": "Zylker Fashions"
    }
  ],
  "sync_time": "1524153096249"
}