---
title: "Update the work schedule section for a given employee id."
method: PUT
path: "/employees/{employeeId}/work-schedules"
tags: ["Employees"]
---

# Update the work schedule section for a given employee id.

`PUT /employees/{employeeId}/work-schedules`

This endpoint updates the employee **work schedule** section for a given employee id. The operation only updates the fields provided in the body.

**Automatic recalculation:**
- If any working day field (mondayWorkingDay, ..., sundayWorkingDay) is modified, the system automatically recalculates and updates the employee's `weeklyDays` field in the work section based on the total number of TRUE values.
- This ensures consistency between the work schedule configuration and the contracted weekly days count.

## Path parameters

- `employeeId` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `mondayWorkingDay` boolean — Allow to indicate if mondays are working days for the employee.
  - `tuesdayWorkingDay` boolean — Allow to indicate if tuesdays are working days for the employee.
  - `wednesdayWorkingDay` boolean — Allow to indicate if wednesdays are working days for the employee.
  - `thursdayWorkingDay` boolean — Allow to indicate if thursdays are working days for the employee.
  - `fridayWorkingDay` boolean — Allow to indicate if fridays are working days for the employee.
  - `saturdayWorkingDay` boolean — Allow to indicate if saturdays are working days for the employee.
  - `sundayWorkingDay` boolean — Allow to indicate if sundays are working days for the employee.

## Response `200`

OK

- object
  - `_id` string — The employee Kenjo *_id*.
  - `mondayWorkingDay` boolean — Allow to indicate if mondays are working days for the employee.
  - `tuesdayWorkingDay` boolean — Allow to indicate if tuesdays are working days for the employee.
  - `wednesdayWorkingDay` boolean — Allow to indicate if wednesdays are working days for the employee.
  - `thursdayWorkingDay` boolean — Allow to indicate if thursdays are working days for the employee.
  - `fridayWorkingDay` boolean — Allow to indicate if fridays are working days for the employee.
  - `saturdayWorkingDay` boolean — Allow to indicate if saturdays are working days for the employee.
  - `sundayWorkingDay` boolean — Allow to indicate if sundays are working days for the employee.

## Other responses

- `400` — BAD REQUEST. This is a wrong request in the client side due to invalid body or params.
- `401` — UNAUTHORIZED. The Authorization header is incorrect, not provided or the token expired.

---

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