Add New Workplace
documentedAdd a new workplace/location via the My setup API.
POST /api/v1/my/setup/addNewWorkplaceLocationsno 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/v1/my/setup/addNewWorkplace" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"strWorkplaceName": "{{$workplaceName}}", "strWorkplaceTimezone": "{{$timezone}}", "strAddress": "{{$address}}", "strLat": "{{$lat}}", "strLon": "{{$lon}}", "intCountry": {{$country}}, "arrAreaNames": ["{{$area1}}", "{{$area2}}", "{{$area3}}"], "strWorkplaceCode": "{{$code}}", "strParentCompany": "{{$parentCompany}}", "strPayrollExportCode": "{{$payrollCode}}", "blnIsWorkplace": {{$isWorkplace}}, "blnIsPayrollEntity": {{$isPayrollEntity}} }'"}