---
title: "Get suggestions for a shift"
method: POST
path: "/management/v2/shifts/{id}/suggestions"
tags: ["Shifts"]
---

# Get suggestions for a shift

`POST /management/v2/shifts/{id}/suggestions`

## Request

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

Get suggestions for a shift.

## Path parameters

- `id` integer, required

## Response `200`

A successful response.

- ScheduleShiftSuggestResponse
  - `success` boolean
  - `data` ModelSuggestionResponse
    - `approvalRequired` boolean
    - `isAllLocations` boolean
    - `nextEmployees` integer[]
    - `trained` object
    - `preferred` object
    - `onLeave` object
    - `unavailable` object
    - `stressed` object
    - `overlap` object
    - `shiftSwapOverlap` object
    - `allEmployees` object
    - `otherLocations` object
    - `isRequiresTraining` boolean
    - `errorStacks` SuggestionResponseErrorMessage[]
      - `employeeId` integer
      - `messages` string[]
    - `notOnboarded` object
    - `available` object

---

[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)
