Create leave request
documentedInsert a leave request.
POST /Payroll/LeaveRequestPayrollno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.saasu.com/Payroll/LeaveRequest?FileId={{$file_id}}" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"LeaveTypePayItemId": {{$leave_type_pay_item_id}}, "EmployeeId": {{$employee_id}}, "StartDate": "{{$start_date}}", "EndDate": "{{$end_date}}", "TotalHours": {{$total_hours}}, "Status": "{{$status}}", "Notes": "{{$notes}}", "Items": [{"LineNumber": 1, "Date": "{{$date}}", "Hours": {{$hours}}, "IsPaid": {{$is_paid}}, "ProcessedInPayRunId": {{$processed_in_pay_run_id}}}]}'