Sign in

Create tasks in batch - async

documented

Submit a batch of tasks for asynchronous processing.

POST /tasks/batch-asyncTasksno 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://onfleet.com/api/v2/tasks/batch-async" \
  -X POST \
  -u "{{ONFLEET_API_KEY}}:" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"tasks":[{"destination":{"address":{"unparsed":"{{$destination1_unparsed}}","number":"{{$destination1_number}}","street":"{{$destination1_street}}","city":"{{$destination1_city}}","state":"{{$destination1_state}}","country":"{{$destination1_country}}","apartment":"{{$destination1_apartment}}"},"notes":"{{$destination1_notes}}"},"recipients":[{"name":"{{$recipient1_name}}","phone":"{{$recipient1_phone}}","notes":"{{$recipient1_notes}}"}],"notes":"{{$task1_notes}}","pickupTask":{{$pickup1}},"metadata":[{"name":"caseId","type":"number","value":{{$task1_caseId}}}]},{"destination":{"address":{"unparsed":"{{$destination2_unparsed}}","number":"{{$destination2_number}}","street":"{{$destination2_street}}","city":"{{$destination2_city}}","state":"{{$destination2_state}}","country":"{{$destination2_country}}","apartment":"{{$destination2_apartment}}"},"notes":"{{$destination2_notes}}"},"recipients":[{"name":"{{$recipient2_name}}","phone":"{{$recipient2_phone}}","notes":"{{$recipient2_notes}}"}],"notes":"{{$task2_notes}}","pickupTask":{{$pickup2}},"metadata":[{"name":"caseId","type":"number","value":{{$task2_caseId}}}]}]}'"}
Create tasks in batch - async · Onfleet · OpenIntegrations