---
title: "Get default shifts for many dates and areas"
method: POST
path: "/management/v2/shifts:bulkDefaults"
tags: ["Shifts"]
---

# Get default shifts for many dates and areas

`POST /management/v2/shifts:bulkDefaults`

## Request

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

Returns a default shift skeleton for every (date, area) combination in the request. Each item carries its own success flag so a single invalid input does not fail the whole call.

## Request body

- BulkDefaultShiftRequestBulkDefaultShiftRequestData
  - `dates` string[]
  - `areas` integer[]

## Response `200`

A successful response.

- ScheduleShiftBulkDefaultShiftResponse
  - `success` boolean
  - `items` ScheduleShiftBulkDefaultShiftResponseItem[]
    - `date` string
    - `area` integer
    - `success` boolean
    - `shift` 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
    - `errorMessage` string

---

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