---
title: "Returns number of unit groups"
method: GET
path: "/inventory/v1/unit-groups/$count"
tags: ["UnitGroup"]
---

# Returns number of unit groups

`GET /inventory/v1/unit-groups/$count`

Returns number of unit groups matching the filter criteria<br>You must have at least one of these scopes: 'unitgroups.read, setup.read, setup.manage'.

## Query parameters

- `propertyId` string
- `unitGroupTypes` string[]

## Response `200`

Success

- CountModel
  - `count` integer, required

## Other responses

- `400` — Bad request.
- `401` — You are unauthorized.
- `403` — Forbidden.
- `404` — The Request-URI could not be found.
- `422` — Validation errors in the request body or query params.
- `499` — Client closed request.
- `500` — An unexpected error occurred.
- `503` — The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-inventory-api.md) · [All operations](https://skmtc.dev/apaleo/apis/apaleo-inventory-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apaleo/apaleo-inventory-api/revisions/a2846f52cdfb/schema)
