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

## Changes

- **2026-09-03** `60bb67970e41` — 4 info
  - added the optional property `error/display_message` to the response with the `401` status
  - added the optional property `error/display_message` to the response with the `403` status
  - added the optional property `error/display_message` to the response with the `404` status
  - added the optional property `error/display_message` to the response with the `500` status

[Change history](https://skmtc.dev/craftboxx/apis/craftboxx-api-documentation/changes/employees/target-working-times/:targetWorkingTimeId/put.md)

---

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