Skip to main content
POST
File a regularization for one of your own past days

Authorizations

Authorization
string
header
required

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.

Body

application/json
date
string
required
Pattern: ^\d{4}-\d{2}-\d{2}$
type
enum<string>
required
Available options:
MissingPunchIn,
MissingPunchOut,
OffZone,
ManualEntry,
WrongLocation
reason
string | null
Maximum string length: 500
requestedChange
string | null
Maximum string length: 200

Response

200 - application/json

Success

id
string<uuid>
required
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
string<uuid>
required
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
string
required
employeeCode
string
required
department
string
required
managerName
string | null
required
date
string
required
type
enum<string>
required
Available options:
MissingPunchIn,
MissingPunchOut,
OffZone,
ManualEntry,
WrongLocation
reason
string | null
required
requestedChange
string | null
required
status
enum<string>
required
Available options:
AwaitingManager,
ManagerApprovedAwaitingHR,
Approved,
Rejected
requiresHrApproval
boolean
required
managerDecisionBy
string<uuid> | null
required
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)$
managerDecisionName
string | null
required
managerDecidedAt
string | null
required
hrDecisionBy
string<uuid> | null
required
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)$
hrDecisionName
string | null
required
hrDecidedAt
string | null
required
decisionNote
string | null
required
createdAt
string
required
ageHours
number
required
urgent
boolean
required