Sign in

Add New Workplace

documented

Add a new workplace/location via the My setup API.

POST /api/v1/my/setup/addNewWorkplaceLocationsno 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://{{$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}} }'"}
Add New Workplace · Deputy · OpenIntegrations