---
title: "Add a timesheet"
method: POST
path: "/timesheets"
tags: ["Timesheets"]
---

# Add a timesheet

`POST /timesheets`

## Request body

- StoreTimesheetRequest
  - `start` string, date-time — Timesheet start date
  - `end` string, date-time — Timesheet end date
  - `working_time` integer, nullable — Timesheet working time(minutes)
  - `break_time` integer, nullable — Timesheet break time(minutes)
  - `source` string — The timesheet source
  - `source_external_id` string — The timesheet source_external_id
  - `employee_id` integer, nullable, required — Employee id

## Response `201`

The resource was successfully created.

## Other responses

- `401` — The request lacks valid authentication credentials.
- `403` — The token is valid but lacks the permission for this action.
- `422` — The request was well-formed but contains semantic errors (validation failed).
- `500` — An unexpected error occurred on the server (e.g. a requested relation does not exist).

---

[API](https://skmtc.net/craftboxx/apis/craftboxx-api-documentation.md) · [All operations](https://skmtc.net/craftboxx/apis/craftboxx-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/craftboxx/craftboxx-api-documentation/revisions/c01f07a02f77/schema)
