v3

latestOpenAPI 3.1.02026-07-31144319609.5 KB
WorkTime

Creates a new change request for work times.

There can only be one pending change request per user and day. By creating another change request for a day which already has a pending one, the existing change request will be overwritten. If a change request is submitted for a day on which the user is allowed to edit work times without a change request, the changes are approved automatically and applied to the day's work times.

post/v2/workTimes/changeRequests

Request body

datestring date required
users_idinteger required

Example request

{
  "date": "2023-02-28",
  "changes": [
    {
      "time_since": "2023-02-28T12:00:00Z",
      "time_until": "2023-02-28T12:00:00Z"
    }
  ]
}

Response

Successful operation

approved_immediatelyboolean required