---
title: "Update target working time"
method: PUT
path: "/employees/target-working-times/{targetWorkingTimeId}"
tags: ["Employee target working times"]
---

# Update target working time

`PUT /employees/target-working-times/{targetWorkingTimeId}`

## Path parameters

- `targetWorkingTimeId` integer, required

## Request body

- UpdateTargetWorkingTimeRequest
  - `employee_id` integer — 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 `200`

The request was successful.

## Other responses

- `401` — The request lacks valid authentication credentials.
- `403` — The token is valid but lacks the permission for this action.
- `404` — The requested resource could not be found.
- `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/versions/c01f07a02f77/schema)
