---
title: "Get default shifts"
method: POST
path: "/management/v2/shifts:defaults"
tags: ["Shifts"]
---

# Get default shifts

`POST /management/v2/shifts:defaults`

## Request

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

Gets default shift skeleton object for a given date, start time, end time, and area. This is a synchronous API that returns the default shift immediately with correct breaks depending on area and shift templates. The shifts must include required fields such as start/end times, employee assignment, and area.

## Request body

- DefaultShiftRequestDefaultShiftRequestData
  - `date` string
  - `start` string
  - `end` string
  - `area` integer

## Response `200`

A successful response.

- ScheduleShiftDefaultShiftResponse
  - `success` boolean
  - `data` ModelShiftRequest
    - `start` string
    - `end` string
    - `mealbreakSlots` ModelBreak[]
      - `slotType` 'BREAK' | 'WORK' | 'CUSTOM'
      - `start` integer
      - `end` integer
      - `state` 'NOT_START' | 'IN_PROGRESS' | 'FINISHED' | 'DURATION_ONLY' | 'DURATION_FINISHED'
      - `canStartEarly` boolean
      - `canEndEarly` boolean
      - `isMandatory` boolean
      - `type` 'MEAL_BREAK' | 'REST_BREAK'
      - `typeLabel` string
      - `startDateTime` string
      - `endDateTime` string
    - `area` integer
    - `employee` integer
    - `note` string
    - `isPublished` boolean
    - `isOpen` boolean
    - `approvalRequired` boolean
    - `confirmationStatus` 'ROSTER_CONFIRMATION_NOT_REQUIRED' | 'ROSTER_CONFIRMATION_REQUIRED' | 'ROSTER_CONFIRMATION_DONE' | 'ROSTER_CONFIRMATION_DECLINED'
    - `confirmationNote` string
    - `swapStatus` 'SWAP_STATUS_NOT_REQUIRED' | 'SWAP_STATUS_PENDING_OUT' | 'SWAP_STATUS_PENDING_IN' | 'SWAP_STATUS_PENDING_IN_OUT' | 'SWAP_STATUS_PENDING_APPROVAL' | 'SWAP_STATUS_APPROVED' | 'SWAP_STATUS_CANCELLED' | 'SWAP_STATUS_DECLINED'
    - `shiftTemplate` integer
    - `children` ModelChildShiftCreateRequest[]
      - `start` string
      - `end` string
      - `area` integer
    - `customFields` Tenantsharedv2modelCustomField[]
      - `id` string, int64
      - `booleanField` ModelBooleanField
        - `value` boolean
      - `stringField` ModelStringField
        - `value` string
      - `listField` ModelListField
        - `value` string
      - `multiListField` ModelMultiListField
        - `value` string[]
      - `fileField` ModelFileField
        - `value` integer
      - `employeeVisible` boolean

---

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