Sirportly

Toggle Menu

Departments

This method allows you to list all departments along with their escalation path.

URL

/api/v2/objects/departments

Supported Parameters

  • brand - name or ID of a brand to restrict departments to those within the passed brand.

Example JSON

[
  {
    "id": 11,
    "name": "Accounts & Billing",
    "brand": {
      "id": 4,
      "name": "Appli",
      "url": "http://www.applihq.com",
      "phone": null
    },
    "escalation_path": {
      "id": 4,
      "name": "aTech Accounts & Billing Path"
    },
    "private": false
  },
  {
    "id": 5,
    "name": "Accounts & Billing",
    "brand": {
      "id": 2,
      "name": "Codebase",
      "url": "http://www.codebasehq.com",
      "phone": null
    },
    "escalation_path": {
      "id": 4,
      "name": "aTech Accounts & Billing Path"
    },
    "private": false
  },
  {
    "id": 8,
    "name": "Accounts & Billing",
    "brand": {
      "id": 3,
      "name": "Point",
      "url": "http://www.pointhq.com",
      "phone": null
    },
    "escalation_path": {
      "id": 4,
      "name": "aTech Accounts & Billing Path"
    },
    "private": false
  },
  {
    "id": 13,
    "name": "Porting Desk",
    "brand": {
      "id": 5,
      "name": "Dial 9",
      "url": "http://www.dial9.co.uk",
      "phone": null
    },
    "escalation_path": {
      "id": 5,
      "name": "Dial 9 Path"
    },
    "private": false
  },
  {
    "id": 10,
    "name": "Sales",
    "brand": {
      "id": 4,
      "name": "Appli",
      "url": "http://www.applihq.com",
      "phone": null
    },
    "escalation_path": {
      "id": 3,
      "name": "aTech Sales Path"
    },
    "private": false
  },
  {
    "id": 4,
    "name": "Sales",
    "brand": {
      "id": 2,
      "name": "Codebase",
      "url": "http://www.codebasehq.com",
      "phone": null
    },
    "escalation_path": {
      "id": 3,
      "name": "aTech Sales Path"
    },
    "private": false
  },
  {
    "id": 7,
    "name": "Sales",
    "brand": {
      "id": 3,
      "name": "Point",
      "url": "http://www.pointhq.com",
      "phone": null
    },
    "escalation_path": {
      "id": 3,
      "name": "aTech Sales Path"
    },
    "private": false
  },
  {
    "id": 9,
    "name": "Technical Support",
    "brand": {
      "id": 4,
      "name": "Appli",
      "url": "http://www.applihq.com",
      "phone": null
    },
    "escalation_path": {
      "id": 2,
      "name": "aTech Technical Support Path"
    },
    "private": false
  },
  {
    "id": 3,
    "name": "Technical Support",
    "brand": {
      "id": 2,
      "name": "Codebase",
      "url": "http://www.codebasehq.com",
      "phone": null
    },
    "escalation_path": {
      "id": 2,
      "name": "aTech Technical Support Path"
    },
    "private": false
  },
  {
    "id": 12,
    "name": "Technical Support",
    "brand": {
      "id": 5,
      "name": "Dial 9",
      "url": "http://www.dial9.co.uk",
      "phone": null
    },
    "escalation_path": {
      "id": 5,
      "name": "Dial 9 Path"
    },
    "private": false
  },
  {
    "id": 6,
    "name": "Technical Support",
    "brand": {
      "id": 3,
      "name": "Point",
      "url": "http://www.pointhq.com",
      "phone": null
    },
    "escalation_path": {
      "id": 2,
      "name": "aTech Technical Support Path"
    },
    "private": false
  }
]