---
title: "Add target working time"
method: POST
path: "/employees/target-working-times"
tags: ["Employee target working times"]
---

# Add target working time

`POST /employees/target-working-times`

## Request body

- StoreTargetWorkingTimeRequest
  - `employee_id` integer, required — Employee id
  - `starting` string, date — When do these working times take effect?
  - `sunday` integer — Target working time on Sunday (minutes)
  - `monday` integer — Target working time on Monday (minutes)
  - `tuesday` integer — Target working time on Tuesday (minutes)
  - `wednesday` integer — Target working time on Wednesday (minutes)
  - `thursday` integer — Target working time on Thursday (minutes)
  - `friday` integer — Target working time on Friday (minutes)
  - `saturday` integer — Target working time on Saturday (minutes)

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