Create employee (Management V2)
documentedCreate a new employee in Deputy via the V2 management API.
POST /api/management/v2/employeesEmployeesno 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://{{$install}}.{{$geo}}.deputy.com/api/management/v2/employees" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"data":{"firstName":"{{$first_name}}","lastName":"{{$last_name}}","primaryLocation":{"id":"{{$location_id}}"},"displayName":"{{$display_name}}"},"fieldMask":"{{$field_mask}}"}'