---
title: "Update balance compensations"
method: PUT
path: "/employees/balance-compensations/{balanceCompensationId}"
tags: ["Employee balance compensations"]
---

# Update balance compensations

`PUT /employees/balance-compensations/{balanceCompensationId}`

## Request

- Base URL: `https://api.craftboxx.de`
- URL: `https://api.craftboxx.de/employees/balance-compensations/{balanceCompensationId}`
- Auth: HTTP bearer

## Path parameters

- `balanceCompensationId` integer, required

## Request body `multipart/form-data`

- UpdateEmployeeBalanceCompensationRequest
  - `employee_id` integer: Employee for the balance compensation
  - `date` string, date: Date of the balance compensation
  - `duration` integer: Amount of the balance compensation in minutes. You can use positive or negative values.
  - `reason` string: Optional reason of the balance compensation

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

[Operation history](https://skmtc.dev/craftboxx/apis/craftboxx-api-documentation/changes/employees/balance-compensations/:balanceCompensationId/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.dev/craftboxx/apis/craftboxx-api-documentation/revisions/019228f63d6e?raw)
