---
title: "Get shift history"
method: GET
path: "/management/v2/shifts/{id}/history"
tags: ["Shifts"]
---

# Get shift history

`GET /management/v2/shifts/{id}/history`

## Request

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

Get shift history.

## Path parameters

- `id` integer, required

## Query parameters

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

## Response `200`

A successful response.

- ScheduleShiftHistoryResponse
  - `success` boolean
  - `data` ModelHistoryData
    - `id` integer
    - `creatorName` string
    - `created` string
    - `history` HistoryDataHistory[]
      - `creatorName` string
      - `dtChanged` string
      - `entries` HistoryEntry[]
        - `description` string
        - `field` string
        - `oldValue` string
        - `newValue` string
      - `updatedDateTime` string
      - `creatorPhoto` string
    - `createdDateTime` string
    - `creatorPhoto` 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)
