---
updatedAt: 2026-04-28T12:11:33.000Z
---

Fetch the complete documentation index at: https://apidocs.hibob.com/llms.txt. Use this file to discover all available pages before exploring further.

# Clock out

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. 


# OpenAPI definition

```json
{
  "openapi": "3.1.1",
  "info": {
    "title": "Attendance API",
    "contact": {
      "name": "Hi Bob, Inc."
    },
    "description": "Public API for importing attendance entries and managing attendance projects, tasks, and clients. Supports detailed field metadata and flexible filtering.",
    "license": {
      "name": "Proprietary",
      "url": "https://apidocs.hibob.com/docs/api-terms-of-use"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.hibob.com/v1",
      "description": "Production"
    },
    {
      "url": "https://api.sandbox.hibob.com/v1",
      "description": "Sandbox"
    }
  ],
  "x-readme": {
    "metrics-enabled": false
  },
  "tags": [
    {
      "name": "Attendance",
      "description": "Access attendance entries"
    }
  ],
  "paths": {
    "/attendance/employees/{employeeId}/entries/clock-out": {
      "patch": {
        "operationId": "patch_attendance-employees-employeeid-entries-clock-out",
        "tags": [
          "Attendance"
        ],
        "summary": "Clock out",
        "description": "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. \n",
        "parameters": [
          {
            "name": "employeeId",
            "in": "path",
            "required": true,
            "description": "The employee ID to clock out (e.g. from kiosk or badge identification)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClockOutRequestBody"
              },
              "examples": {
                "clockOutExample": {
                  "summary": "Clock out employee",
                  "description": "Record clock-out at the given time (employeeId is in the URL).",
                  "value": {
                    "clockOutTime": "2026-02-08T09:01:00"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Clock-out recorded; returns the entry ID",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntryIdResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or includes invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed. Check your service user credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The service user or token is missing the required permissions to access the requested data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Feature not enabled or no open clock-in found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded - see <a href=\"https://apidocs.hibob.com/reference/attendance#rate-limiting\" target=\"_blank\">Rate limits</a>",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error occurred. Try again or contact support if the issue persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "basic": []
          },
          {
            "Bearer": []
          }
        ],
        "x-internal": false
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basic": {
        "type": "http",
        "scheme": "basic",
        "description": "Basic HTTP authentication using service user credentials"
      },
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "OAuth 2.0",
        "description": "OAuth 2.0 authentication using an Access Token is available for registered partners only.  Try It! does not support the full HiBob OAuth flow. You can follow <a href=\"https://apidocs.hibob.com/reference/oauth-20#testing-from-the-public-api-reference\" target=\"_blank\">these steps</a> to complete the OAuth 2.0 flow in Postman and then paste the token here."
      }
    },
    "schemas": {
      "ApiErrorResponse": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Error key identifier"
          },
          "error": {
            "type": "string",
            "description": "Human-readable error message"
          },
          "args": {
            "type": "array",
            "description": "Optional error arguments providing additional context",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ClockOutRequestBody": {
        "type": "object",
        "required": [
          "clockOutTime"
        ],
        "properties": {
          "clockOutTime": {
            "type": "string",
            "format": "date-time",
            "description": "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).",
            "example": "2026-01-26T17:30:00"
          }
        },
        "description": "Request body for clock-out when using PATCH /attendance/employees/{employeeId}/entries/clock-out (employeeId is in the path)."
      },
      "EntryIdResponse": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "The attendance entry ID (created or updated)"
          }
        },
        "description": "Response containing a single attendance entry ID"
      }
    }
  }
}
```