---
title: "get count for each status in find replacement, open shift"
method: GET
path: "/management/v2/shifts/{id}/open:statusCounts"
tags: ["Shifts"]
---

# get count for each status in find replacement, open shift

`GET /management/v2/shifts/{id}/open:statusCounts`

## Request

- Base URL: `https://your-subdomain.deputy.deputy.com/api`
- URL: `https://your-subdomain.deputy.deputy.com/api/management/v2/shifts/{id}/open:statusCounts`
- Auth: API key in header `OAuth`

get count for each status in find replacement, open shift.

## Path parameters

- `id` integer, required

## Query parameters

- `expandMetadata` boolean
- `viewContext` 'EMPLOYEE' | 'MANAGER'

## Response `200`

A successful response.

- ScheduleShiftGetOpenStatusCountsResponse
  - `success` boolean
  - `data` GetOpenStatusCountsResponseOpenStatusCountData[]
    - `status` 'AWAITING' | 'DECLINED'
    - `count` integer

---

[API](https://skmtc.dev/deputy/apis/deputy-v2-api.md) - [All operations](https://skmtc.dev/deputy/apis/deputy-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deputy/apis/deputy-v2-api/revisions/78f0278f4608?raw)
