---
title: "Clock out"
method: PATCH
path: "/attendance/employees/{employeeId}/entries/clock-out"
tags: ["Attendance"]
---

# Clock out

`PATCH /attendance/employees/{employeeId}/entries/clock-out`

## Request

- Base URL: `https://api.hibob.com/v1`
- URL: `https://api.hibob.com/v1/attendance/employees/{employeeId}/entries/clock-out`
- Auth: one of:
  - HTTP basic
  - HTTP bearer

Record clock-out for the employee identified by the path. Updates the most recent open clock-in entry for that employee with the given clock-out time. Returns the updated entry ID.

## Path parameters

- `employeeId` string, required

## Request body

- ClockOutRequestBody: Request body for clock-out when using PATCH /attendance/employees/{employeeId}/entries/clock-out (employeeId is in the path).
  - `clockOutTime` string, date-time, required: Clock-out as a **timestamp** (date + time) in date-time format (e.g. ISO 8601). The **date part** of the timestamp must be the current date; past or future dates cause the request to fail. An open clock-in for this employee must already exist (see clock-in endpoint).

## Response `200`

Clock-out recorded; returns the entry ID

- EntryIdResponse: Response containing a single attendance entry ID
  - `id` integer, required: The attendance entry ID (created or updated)

## Other responses

- `400`: The request is malformed or includes invalid parameters
- `401`: Authentication failed. Check your service user credentials
- `403`: The service user or token is missing the required permissions to access the requested data
- `404`: Feature not enabled or no open clock-in found
- `429`: Rate limit exceeded - see <a href="https://apidocs.hibob.com/reference/attendance#rate-limiting" target="_blank">Rate limits</a>
- `500`: An unexpected error occurred. Try again or contact support if the issue persists.

---

[API](https://skmtc.dev/hibob/apis/attendance-api.md) - [All operations](https://skmtc.dev/hibob/apis/attendance-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hibob/apis/attendance-api/revisions/5415173dcf0d?raw)
