## Change history of an entry

`GET /api/hr/v1/time-entries/{id}/history`

Module: HR · operationId: `listTimeEntryHistory` · Tag: Working time · Auth: access token (`Authorization: Bearer <accessToken>`)

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string (uuid) | yes |  |

### Responses

- **200** Changes, oldest first (`application/json`)

Fields of the 200 answer:

- `items` (array of TimeEntryChange, required): Change records, oldest first
  - `action` (string): What was done (create, update, delete, the stamps, auto-out)
  - `actor` (string): Who did it (e-mail, or system; the platform team acting in the tenant: „Plattformbetrieb (MBCOM) · <Name>“)
  - `after` (TimeEntry)
    - `autoEnded` (boolean): HR ended the segment at midnight because nobody clocked out (setting `autoEndAtMidnight`). It counts no working time until it is corrected; any change clears the mark.
    - `breakMinutes` (integer): Break inside the segment in minutes (manual entries)
    - `createdAt` (string (date-time)): When the time entry was created
    - `createdBy` (string): Who created the time entry (e-mail of the caller)
    - `employeeId` (string): Id of the employee
    - `end` (string (date-time)): Missing while running
    - `endedForBreak` (boolean): The segment was closed by starting a break
    - `id` (string): Id of the time entry
    - `note` (string): Note on the entry
    - `source` (string): clock: stamped, manual: entered by hand (one of `clock`, `manual`)
    - `start` (string (date-time)): Start of the segment
    - `updatedAt` (string (date-time)): When the time entry was last changed
    - `updatedBy` (string): Who last changed the time entry (e-mail of the caller)
    - `version` (integer): Version for optimistic locking: send the version you read with a change (stale: 409 version_conflict)
  - `at` (string (date-time)): When it happened
  - `before` (TimeEntry)
    - `autoEnded` (boolean): HR ended the segment at midnight because nobody clocked out (setting `autoEndAtMidnight`). It counts no working time until it is corrected; any change clears the mark.
    - `breakMinutes` (integer): Break inside the segment in minutes (manual entries)
    - `createdAt` (string (date-time)): When the time entry was created
    - `createdBy` (string): Who created the time entry (e-mail of the caller)
    - `employeeId` (string): Id of the employee
    - `end` (string (date-time)): Missing while running
    - `endedForBreak` (boolean): The segment was closed by starting a break
    - `id` (string): Id of the time entry
    - `note` (string): Note on the entry
    - `source` (string): clock: stamped, manual: entered by hand (one of `clock`, `manual`)
    - `start` (string (date-time)): Start of the segment
    - `updatedAt` (string (date-time)): When the time entry was last changed
    - `updatedBy` (string): Who last changed the time entry (e-mail of the caller)
    - `version` (integer): Version for optimistic locking: send the version you read with a change (stale: 409 version_conflict)
  - `entryId` (string): Id of the time entry
  - `id` (string): Id of the change record
  - `reason` (string): Reason given for the change

Example 200 answer:

```json
{
  "items": [
    {
      "action": "stamp-in",
      "actor": "sophie.huber@muster-it.example",
      "after": {
        "breakMinutes": 0,
        "employeeId": "e5a1c3d7-2b4f-4c6e-8a0b-1d3f5b7c9e02",
        "id": "3a5c7e9a-1c3e-4a5c-9e7a-1c3e5a7c9e36",
        "source": "clock",
        "start": "2026-11-18T06:28:00Z",
        "version": 1
      },
      "at": "2026-11-18T06:28:00Z",
      "entryId": "3a5c7e9a-1c3e-4a5c-9e7a-1c3e5a7c9e36",
      "id": "7e9a1c3e-5a7c-4e9a-8c1e-5a7c9e1a3c38"
    },
    {
      "action": "update",
      "actor": "sophie.huber@muster-it.example",
      "after": {
        "breakMinutes": 30,
        "employeeId": "e5a1c3d7-2b4f-4c6e-8a0b-1d3f5b7c9e02",
        "end": "2026-11-18T15:00:00Z",
        "id": "3a5c7e9a-1c3e-4a5c-9e7a-1c3e5a7c9e36",
        "source": "clock",
        "start": "2026-11-18T06:28:00Z",
        "version": 3
      },
      "at": "2026-11-18T15:04:00Z",
      "before": {
        "breakMinutes": 0,
        "employeeId": "e5a1c3d7-2b4f-4c6e-8a0b-1d3f5b7c9e02",
        "end": "2026-11-18T15:00:00Z",
        "id": "3a5c7e9a-1c3e-4a5c-9e7a-1c3e5a7c9e36",
        "source": "clock",
        "start": "2026-11-18T06:28:00Z",
        "version": 2
      },
      "entryId": "3a5c7e9a-1c3e-4a5c-9e7a-1c3e5a7c9e36",
      "id": "9a1c3e5a-7c9e-4a1c-9e3a-7c9e1a3c5e39",
      "reason": "Mittagspause nachgetragen"
    }
  ]
}
```

### Example request

```bash
curl -X GET 'https://api.mbcom.cloud/api/hr/v1/time-entries/3f2b8c1e-7d4a-4e9b-9c2a-5b1d6e8f0a12/history' \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```
