Skip to main content
POST
Submit a leave request for the caller

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
employeeId
string<uuid>
required
type
enum<string>
required
Available options:
sick,
vacation,
personal,
maternity,
paternity,
bereavement,
other
fromDate
string
required
toDate
string
required
totalDays
number | null
required
reason
string
status
enum<string>
default:pending
Available options:
pending,
approved,
rejected,
cancelled
approvedById
string<uuid>
approvedAt
string

Response

201 - application/json

Success

data
object
required