+
+
+
xero_client.set_token_set(user.token_set)
+
+xero_tenant_id = 'xeroTenantId_example'
+timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d'
+timesheet_line_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d'
+idempotency_key = 'KEY_VALUE'
+date = 'YYYY-MM-DD'
+
+timesheet_line = {
+ timesheet_line_id: "00000000-0000-0000-0000-000000000000",
+ date: date,
+ earnings_rate_id: "00000000-0000-0000-0000-000000000000",
+ tracking_item_id: "00000000-0000-0000-0000-000000000000",
+ number_of_units: 6
+}
+
+begin
+ response = xero_client.accounting_api.update_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line_id, timesheetLine, idempotency_key)
+ return response
+rescue XeroRuby::ApiError => e
+ puts "Exception when calling update_timesheet_line: #{e}"
+end
+
+
+
+