---
title: "Get Timesheet Questions"
method: POST
path: "/tsa/v2/timesheets/{timesheetId}:get-timesheet-questions"
tags: ["Timesheet Approval"]
---

# Get Timesheet Questions

`POST /tsa/v2/timesheets/{timesheetId}:get-timesheet-questions`

## Request

- Base URL: `https://your-subdomain.deputy.deputy.com/api`
- URL: `https://your-subdomain.deputy.deputy.com/api/tsa/v2/timesheets/{timesheetId}:get-timesheet-questions`
- Auth: API key in header `OAuth`

List all timesheet questions which are visible for this timesheet. Optionally override the timesheet properties.

## Path parameters

- `timesheetId` integer, required

## Request body

- GetTimesheetQuestionsRequestTimesheetQuestionsRequestBody
  - `setProperties` TsaTimesheetPropertyRequest
    - `startTime` string, int64: unix epoch timestamp, seconds
    - `endTime` string, int64: unix epoch timestamp, seconds
    - `operationalUnitId` integer: operational unit (area) ID
    - `setBreaks` TsaTimesheetBreaksRequest
      - `breaks` ModelTimesheetBreak[]: passing an empty array here will delete all breaks for the timesheet.
        - `duration` integer
        - `startTimeOffset` integer
        - `breakType` 'NO_TYPE' | 'MEAL_BREAK' | 'REST_BREAK'
      - `totalDurationMealBreak` integer: total duration of meal break in minutes
    - `employeeId` integer
    - `leaveRuleId` integer: leave rule (leave type) ID
    - `employeeComment` string: employee comment for the timesheet

## Response `200`

A successful response.

- TsaGetTimesheetQuestionsResponse
  - `data` GetTimesheetQuestionsResponseTimesheetQuestionsResponseBody
    - `questions` GetTimesheetQuestionsResponseTimesheetQuestionWithAnswer[]
      - `question` ModelTimesheetQuestion
        - `name` string
        - `label` string
        - `helptext` string
        - `sortOrder` integer
        - `defaultAnswer` string
        - `answerType` integer
        - `requireNotEmpty` boolean
        - `valueList` string[]
      - `employeeAnswer` string
    - `files` object
  - `success` 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)
