Time Off Requests
Time off requests in Zoho Shifts can be used to track employees' leave days.
End Points
Get all time off requests
Create a time off request
Get a time off request
Update a time off request
Delete a time off request
Cancel a time off request
Approve a time off request
Deny a time off request
Get all time off types
Get all time off requests
Required OAuth Scope: ZohoShifts.timeoff.READ
Query Parameters
schedules
Comma separated schedule IDs to filter requests by schedules.
status
Any of
pending
, approved
, denied
, cancelled
to filter requests by status. employee_id
Filter requests by an employee.
start_date
Start date of range in
yyyy-mm-dd
format. end_date
End date of range in
yyyy-mm-dd
format. limit
The number of entries to return per page. Default: 20 Max: 100
page
The page number to fetch. Default: 1
Create a time off request
Required OAuth Scope: ZohoShifts.timeoff.CREATE
Arguments
employee_id
string
(Required)
start_date
date-time
(Required)
Start time of the time off request
end_date
date-time
(Required)
End time of the time off request
type_id
string
(Required)
Time off type ID
day_type
string
(Required)
Any of
all_day
, partial
. reason
string
Reason for requesting time off
auto_approve
boolean
, default is true
By default, the time off request is automatically approved when it is created or updated by a user who has
Approve time off requests
permission. Send false
to disable the automatic approvalGet a time off request
Required OAuth Scope: ZohoShifts.timeoff.READ
Update a time off request
Required OAuth Scope: ZohoShifts.timeoff.UPDATE
Arguments
start_date
date-time
Start time of the time off request
end_date
date-time
End time of the time off request
type_id
string
Time off type ID
day_type
string
Any of
all_day
, partial
. reason
string
Reason for requesting time off
auto_approve
boolean
, default is true
By default, the time off request is automatically approved when it is created or updated by a user who has
Approve time off requests
permission. Send false
to disable the automatic approvalDelete a time off request
Required OAuth Scope: ZohoShifts.timeoff.DELETE
Cancel a time off request
Required OAuth Scope: ZohoShifts.timeoff.UPDATE
Approve a time off request
Required OAuth Scope: ZohoShifts.timeoff.UPDATE
Deny a time off request
Required OAuth Scope: ZohoShifts.timeoff.UPDATE
Get all time off types
Required OAuth Scope: ZohoShifts.settings.READ