Create team
documentedCreate a new team and assign workers/managers.
POST /teamsTeamsno 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://onfleet.com/api/v2/teams" \
-X POST \
-u "{{ONFLEET_API_KEY}}:" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name": "{{$name}}", "workers": ["{{$worker_id_1}}","{{$worker_id_2}}"], "managers": ["{{$manager_id_1}}"], "hub": "{{$hub_id}}", "enableSelfAssignment": {{$enableSelfAssignment}} }'