> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ontime.hosai.app/llms.txt
> Use this file to discover all available pages before exploring further.

# File a regularization on behalf of an employee (manager/HR)

> File a regularization on behalf of an employee (manager/HR)



## OpenAPI

````yaml /api-reference/openapi.json post /api/regularizations/employees/{employeeId}
openapi: 3.1.0
info:
  title: ontime API
  description: APIs for ontime.v2
  version: 1.0.0
servers:
  - url: https://app.ontime.hosai.app
    description: Production
security:
  - apiKey: []
paths:
  /api/regularizations/employees/{employeeId}:
    post:
      tags:
        - Regularization
      summary: File a regularization on behalf of an employee (manager/HR)
      description: File a regularization on behalf of an employee (manager/HR)
      operationId: postApiRegularizationsEmployeesByEmployeeId
      parameters:
        - in: path
          name: employeeId
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                date:
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                type:
                  type: string
                  enum:
                    - MissingPunchIn
                    - MissingPunchOut
                    - OffZone
                    - ManualEntry
                    - WrongLocation
                reason:
                  anyOf:
                    - type: string
                      maxLength: 500
                    - type: 'null'
                requestedChange:
                  anyOf:
                    - type: string
                      maxLength: 200
                    - type: 'null'
              required:
                - date
                - type
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  employeeId:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  employeeName:
                    type: string
                  employeeCode:
                    type: string
                  department:
                    type: string
                  managerName:
                    anyOf:
                      - type: string
                      - type: 'null'
                  date:
                    type: string
                  type:
                    type: string
                    enum:
                      - MissingPunchIn
                      - MissingPunchOut
                      - OffZone
                      - ManualEntry
                      - WrongLocation
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                  requestedChange:
                    anyOf:
                      - type: string
                      - type: 'null'
                  status:
                    type: string
                    enum:
                      - AwaitingManager
                      - ManagerApprovedAwaitingHR
                      - Approved
                      - Rejected
                  requiresHrApproval:
                    type: boolean
                  managerDecisionBy:
                    anyOf:
                      - type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                      - type: 'null'
                  managerDecisionName:
                    anyOf:
                      - type: string
                      - type: 'null'
                  managerDecidedAt:
                    anyOf:
                      - type: string
                      - type: 'null'
                  hrDecisionBy:
                    anyOf:
                      - type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                      - type: 'null'
                  hrDecisionName:
                    anyOf:
                      - type: string
                      - type: 'null'
                  hrDecidedAt:
                    anyOf:
                      - type: string
                      - type: 'null'
                  decisionNote:
                    anyOf:
                      - type: string
                      - type: 'null'
                  createdAt:
                    type: string
                  ageHours:
                    type: number
                  urgent:
                    type: boolean
                required:
                  - id
                  - employeeId
                  - employeeName
                  - employeeCode
                  - department
                  - managerName
                  - date
                  - type
                  - reason
                  - requestedChange
                  - status
                  - requiresHrApproval
                  - managerDecisionBy
                  - managerDecisionName
                  - managerDecidedAt
                  - hrDecisionBy
                  - hrDecisionName
                  - hrDecidedAt
                  - decisionNote
                  - createdAt
                  - ageHours
                  - urgent
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: ont_ API key
      description: >-
        Issue keys in Settings → API. Send them as `Authorization: Bearer ont_…`
        (an `X-Api-Key: ont_…` header is also accepted). Session-cookie routes
        are used by the OnTime web apps and are shown for completeness.

````