---
updatedAt: 2026-04-27T16:09:54.000Z
agentTools:
  projectIndex: https://developer.deputy.com/llms.txt
---

# Get shift log new

Get shift log new.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Deputy V2 API",
    "version": "1.0",
    "description": "\n\nFiltered to publicly-authenticated routes only (APIAuthenticator). Scoped-OAuth routes and internal JWT routes are excluded — see the separate \"Deputy V2 Scoped API\" spec for scoped endpoints."
  },
  "servers": [
    {
      "url": "https://{subdomain}.{region}.deputy.com/api",
      "description": "Deputy tenant",
      "variables": {
        "subdomain": {
          "default": "your-subdomain",
          "description": "Your Deputy tenant subdomain"
        },
        "region": {
          "default": "deputy",
          "enum": [
            "au",
            "eu",
            "na",
            "deputy"
          ],
          "description": "Deputy region: au, eu, na, or deputy (AU default)"
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "ScheduleShiftLogResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/modelShiftLogData"
          }
        }
      },
      "ShiftLogDataShiftLogGroup": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShiftLogGroupShiftLogEvent"
            }
          }
        }
      },
      "ShiftLogGroupShiftLogEvent": {
        "type": "object",
        "properties": {
          "photoUrl": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "updated": {
            "type": "string"
          },
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShiftLogGroupShiftLogEventDetail"
            }
          }
        }
      },
      "ShiftLogGroupShiftLogEventDetail": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string"
          },
          "old": {
            "type": "string"
          },
          "new": {
            "type": "string"
          }
        }
      },
      "modelShiftLogData": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShiftLogDataShiftLogGroup"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "ApiToken": {
        "type": "apiKey",
        "in": "header",
        "name": "OAuth"
      }
    }
  },
  "paths": {
    "/management/v2/shifts/{id}/log": {
      "get": {
        "summary": "Get shift log new",
        "operationId": "ScheduleShiftV2Controller_log",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduleShiftLogResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "description": "The ID of the shift to retrieve.",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "expandMetadata",
            "description": "If true, includes additional metadata such as locations, areas, and employee profiles.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "viewContext",
            "description": "Determines the context of the viewer, affecting what data is returned and permissions checked.\n\n - EMPLOYEE: Employee context - returns data visible as an employee.\n - MANAGER: Manager context - returns full manager-level data and permissions.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "EMPLOYEE",
                "MANAGER"
              ],
              "default": "EMPLOYEE"
            }
          }
        ],
        "tags": [
          "Shifts"
        ],
        "description": "Get shift log new."
      }
    }
  },
  "security": [
    {
      "ApiToken": []
    }
  ]
}
```