---
title: "Batch Approve Time for Timesheet"
method: POST
path: "/tsa/v2/timesheets:batch-forecast"
tags: ["Timesheet Batch Forecast"]
---

# Batch Approve Time for Timesheet

`POST /tsa/v2/timesheets:batch-forecast`

## Request

- Base URL: `https://your-subdomain.deputy.deputy.com/api`
- URL: `https://your-subdomain.deputy.deputy.com/api/tsa/v2/timesheets:batch-forecast`
- Auth: API key in header `OAuth`

Bulk action trigger forecast

## Request body

- TsaTimesheetBatchRequest
  - `query` TimesheetBatchRequestQuery
    - `dateFrom` string
    - `dateTo` string
    - `operationalUnitIds` integer[]
    - `includeAllLocations` boolean
    - `approvalStatus` 'ANY' | 'PENDING' | 'TIME_APPROVED' | 'PAY_APPROVED'
    - `employeeIds` integer[]
    - `includeAllEmployees` boolean
    - `timesheetIds` integer[]
    - `includeAllTimesheets` boolean
    - `issueStatus` 'ISSUES_INCLUDED' | 'ISSUES_ONLY' | 'ISSUES_EXCLUDED'
    - `rosterIds` integer[]

## Response `200`

A successful response.

- TsaAsyncResponse
  - `success` boolean
  - `operationId` string
  - `locks` OperationLock[]
    - `kind` string
    - `ids` object

---

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