Sign in

Update employee

documented

Update a payroll employee.

PUT /Employees/{EmployeeID}PayrollNzno implementation yet0 runs
No 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.xero.com/payroll.xro/2.0/Employees/{{$employee_id}}" \
  -X PUT \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Xero-Tenant-Id: {{$tenant_id}}" \
  -H "Idempotency-Key: {{$idempotency_key}}" \
  -d '{"employee": {"first_name": "{{$first_name}}", "last_name": "{{$last_name}}", "date_of_birth": "{{$date_of_birth}}", "address": {"address_line_1": "{{$address_line_1}}", "city": "{{$city}}", "post_code": "{{$post_code}}", "country_name": "{{$country_name}}"}}}'