Add location
documentedCreate a new Deputy location.
PUT /api/v1/supervise/companyLocationsno 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/supervise/company" \
-X PUT \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"Code": "{{$code}}", "Active": {{$active}}, "ParentCompany": {{$parent_company}}, "CompanyName": "{{$company_name}}", "TradingName": "{{$trading_name}}", "IsWorkplace": {{$is_workplace}}, "IsPayrollEntity": {{$is_payroll_entity}}, "PayrollExportCode": "{{$payroll_export_code}}", "Address": "{{$address}}"}'