List departments

get/departments

Request

  • Base URL
    https://develop.snipeitapp.com/api/v1
  • URL
    https://develop.snipeitapp.com/api/v1/departments
  • Auth
    none required

Query parameters

namestring
company_idinteger
manager_idinteger
location_idinteger

Response

200

totalinteger

Example response

{
  "total": 6,
  "rows": [
    {
      "id": 1,
      "name": "Human Resources",
      "location": {
        "id": 2,
        "name": "North Alanis"
      },
      "users_count": "8",
      "created_at": {
        "datetime": "2022-11-15 08:42:05",
        "formatted": "Tue Nov 15, 2022 8:42AM"
      },
      "updated_at": {
        "datetime": "2022-11-15 08:42:05",
        "formatted": "Tue Nov 15, 2022 8:42AM"
      },
      "available_actions": {
        "update": true
      }
    }
  ]
}

Changes