v1

latestOpenAPI 3.0.02026-08-061478520.6 KB
[v1] Attendance

Insert or update user attendance records

Inserts or updates attendance records for a user. Each entry corresponds to one day. The shouldBe and vacationTime fields are optional.

Important: The date range constraint does not mean a limit of 100 entries, but rather that the maximum range between the earliest and latest dates in the payload must not exceed 100 days.

post/attendance/{userId}/user

Path parameters

userIdinteger required

ID of the user whose attendance is being updated

Request body

daystring date
dayTypeIdinteger
shouldBeinteger

Optional - expected working time in minutes

vacationTimeinteger

Optional - vacation time in minutes

Example request

[
  {
    "day": "2025-03-01",
    "dayTypeId": 12,
    "shouldBe": 480
  }
]

Response

Attendance was updated successfully

messagestring

Example response

{
  "message": "Attendance was updated successfully."
}