---
title: "Create a timesheet setup"
method: POST
path: "/workspaces/{workspace_id}/timesheet_setups"
tags: ["approvals", "workspaces"]
---

# Create a timesheet setup

`POST /workspaces/{workspace_id}/timesheet_setups`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/workspaces/{workspace_id}/timesheet_setups`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/workspaces/:workspace_id/timesheet_setups/post.ts> (a function with typed inputs; its response is checked against the schema)

Create timesheet setups.

## Path parameters

- `workspace_id` integer, required

## Request body

- TimesheetsetupsCreatePayload
  - `approver_id` integer
  - `member_ids` integer[]
  - `periodicity` string
  - `reminder_day` string
  - `reminder_time` string
  - `start_date` string

## Response `200`

Successful operation

- TimesheetsetupsAPITimesheetSetup[]
  - `approver_id` integer
  - `approver_name` string
  - `end_date` string
  - `errors` ModelsTimesheetSetupError[]
    - `code` string
    - `message` string
  - `id` integer
  - `member_id` integer
  - `member_name` string
  - `periodicity` string
  - `reminder_day` string
  - `reminder_time` string
  - `start_date` string
  - `workspace_id` integer

## Other responses

- `400`: Possible error messages: * Workspace not found * Invalid user ID * Too many user IDs * Invalid date * Invalid periodicity * User not in workspace * User is not an admin in the workspace * Approver cannot be member * Member already has a timesheet setup
- `402`: Approvals are a premium feature
- `403`: User does not have access to this resource
- `500`: Internal Server Error

---

[API](https://skmtc.dev/toggl/apis/toggl-api.md) - [All operations](https://skmtc.dev/toggl/apis/toggl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toggl/apis/toggl-api/revisions/3085aee16990?raw)
