/// <summary> /// Bulk Insert Timesheets /// </summary> /// <remarks> /// Adds timesheets for the specified business. This will not replace any existing timesheets. /// The timesheets should be grouped by their associated employee IDs, with the key for the timesheet array /// being the employee ID. For a Standard Employee ID Type, make sure the employee ID is an integer. /// </remarks> public void BulkInsertTimesheets(int businessId, SgSubmitTimesheetsRequest request) { ApiRequest($"/business/{businessId}/timesheet/bulk", request, Method.POST); }
/// <summary> /// Bulk Insert Timesheets /// </summary> /// <remarks> /// Adds timesheets for the specified business. This will not replace any existing timesheets. /// The timesheets should be grouped by their associated employee IDs, with the key for the timesheet array /// being the employee ID. For a Standard Employee ID Type, make sure the employee ID is an integer. /// </remarks> public Task BulkInsertTimesheetsAsync(int businessId, SgSubmitTimesheetsRequest request, CancellationToken cancellationToken = default) { return(ApiRequestAsync($"/business/{businessId}/timesheet/bulk", request, Method.POST, cancellationToken)); }
/// <summary> /// Update/Replace timesheets /// </summary> /// <remarks> /// Performs the same action as 'Bulk Insert Timesheets', but any existing timesheets /// for the specified employees within the specified time period /// (StartTime - EndTime) will be replaced with the timesheets specified. /// </remarks> public void UpdateReplaceTimesheets(int businessId, SgSubmitTimesheetsRequest request) { ApiRequest($"/business/{businessId}/timesheet/bulk", request, Method.PUT); }