Use this endpoint to assign a task (non optimized) to a worker / route.
- POST /api/v3/dispatcher/tasks/quick_assign
- API reference link: coming soon
Request Parameters
Parameter |
Required? |
Type |
Description |
access_token |
Yes |
String |
Access token generated |
company_slug |
Yes |
String |
Dispatcher company slug |
worker_id |
Yes |
Integer |
Worker Id |
task_ids |
Yes |
Object |
List of task ids to be quick assigned |
price_currency |
No |
String |
Price currency for the assigned tasks |
commission |
No |
String |
Commission to be given to the driver |
Request Sample cURL/Payload
curl -X POST "https://umbrella-dev.yojee.com/api/v3/dispatcher/tasks/quick_assign" -H "accept: application/json" -H "ACCESS_TOKEN: pCVPeEEUuKnM7geUOcSLY2imA5l6YUdjymkApBDAAGY=" -H "COMPANY_SLUG: yojee" -H "content-type: application/json" -d "{ \"worker_id\": 660, \"task_ids\": [ 24405, 24406 ], \"price_currency\": \"SGD\", \"commission\": \"23.00\"}
Sample Response Body
Server Code Status: 200 => Quick assign task successful
example value(s)
{
"message": "Allocation successful"
}