---
title: "Check consents for shifts"
method: POST
path: "/management/v2/shifts:checkConsent"
tags: ["Shifts consent check"]
---

# Check consents for shifts

`POST /management/v2/shifts:checkConsent`

## Request

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

Check consents for shifts.

## Request body

- ScheduleShiftCheckConsentRequestData
  - `shifts` ScheduleShiftCheckConsentRequestShift[]
    - `id` integer
    - `changeset` ModelChangeset
      - `newData` ChangesetShiftChangeset
        - `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
        - `employee` integer
        - `area` integer
        - `isOpen` boolean
        - `approvalRequired` boolean
    - `action` 'NOT_SPECIFIED' | 'DELETE'
  - `config` ScheduleShiftCheckConsentRequestConfig
    - `includeIsPublishRequired` boolean

## Response `200`

A successful response.

- ScheduleShiftCheckConsentResponse
  - `success` boolean
  - `data` ScheduleShiftCheckConsentResponseData
    - `shifts` ScheduleShiftCheckConsentResponseShift[]
      - `id` integer
      - `isConsentRequired` boolean
      - `isPublishRequired` boolean
      - `violatedRules` CheckConsentResponseViolatedRule[]
        - `ruleCode` string
        - `warning` ScheduleShiftCheckConsentResponseWarning
          - `message` string
        - `ruleConfigs` ScheduleShiftCheckConsentResponseRuleConfig[]
          - `field` string
          - `operation` 'NOT_SPECIFIED' | 'GREATER_THAN' | 'LESS_THAN' | 'GREATER_THAN_OR_EQUAL' | 'LESS_THAN_OR_EQUAL' | 'EQUAL' | 'NOT_EQUAL'
          - `value` string
          - `gap` integer
          - `space` integer
          - `action` 'NOT_PROVIDED' | 'CREATE' | 'MODIFY' | 'DELETE'
          - `boundary` string
          - `overnightGap` integer
      - `action` 'NOT_SPECIFIED' | 'DELETE'
    - `aggregated` CheckConsentResponseAggregated
      - `totalConsentRequired` 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)
