-
Notifications
You must be signed in to change notification settings - Fork 1
endpoints.TimeOff.TimeOff
Yaroslav Surzhikov edited this page Aug 7, 2020
·
1 revision
| submit_request(
employee_id,
policy_type,
start_date,
end_date,
description='',
start_date_portion='all_day',
end_date_portion='all_day',
skip_manager_approval=False
)Submits a new time off request.
Arguments:
-
employee_idstr - employee id -
policy_typestr - Request policy type, e.g. Holiday, Sick or any custom type defined -
start_datedate - Date of the first day of the time off -
end_datedate - Date of the last day of the time off -
descriptionstr - request reason -
start_date_portionstr - Portion of the first day (all_day, morning, afternoon) -
end_date_portionstr - Portion of the last day (all_day, morning, afternoon) -
skip_manager_approvalbool - Admins only can skip the approval policy, setting this field to true will create an approved request
References:
| get_request_by_id(employee_id, request_id)Supplies detailed info about an existing time off request.
Arguments:
-
employee_idstr - employee id -
request_idstr - request id
References:
| cancel_request(employee_id, request_id)Cancels an existing time off request.
Arguments:
-
employee_idstr - employee id -
request_idstr - request id
References:
| get_requests_since_date(since)Returns the list of time off requests approved or canceled since the specified date.
Arguments:
-
sincedatetime.datetime - Timestamp starting from which to return the changes. Should be in ISO-8601 format, e.g. 2007-04-05T14:30:24.345Z or 2007-04-05T12:30-02:00
References:
| who_is_out(since, until)Returns time off information for a given date range.
Arguments:
-
sincedate - Start period date -
untildate - End period date
References:
| who_is_out_today(today=None)Returns the list of people that have a time off request today or on the specified date.
Arguments:
-
todaydate - Date to report out of the office. If not specified, the date at UTC at the time of the request is used
References: