approveLeaveApplication
Approve a requested leave application by a unique leave application id
/LeaveApplications/{LeaveApplicationID}/approve
Usage and SDK Samples
xero_client.set_token_set(user.token_set)
xero_tenant_id = 'xeroTenantId_example'
leave_application_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'
idempotency_key = 'KEY_VALUE'
begin
response = xero_client.accounting_api.approve_leave_application(xero_tenant_id, leave_application_id, idempotency_key)
return response
rescue XeroRuby::ApiError => e
puts "Exception when calling approve_leave_application: #{e}"
end
Scopes
payroll.employees | Grant read-write access to payroll employees |
Parameters
Name | Description |
---|---|
LeaveApplicationID* |
UUID
(uuid)
Leave Application id for single object
Required
|
Name | Description |
---|---|
Xero-Tenant-Id* |
String
Xero identifier for Tenant
Required
|
Idempotency-Key |
String
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|