APIAPI ReferenceJob Management
Bulk Create Jobs
Create multiple jobs in a single API call.
POST
/api/v1/workspace/jobs/bulk-createRequest Body
jobsarrayRequiredArray of job objects — same schema as Create Job
JSON
{
"jobs": [
{
"jobName": "Job A",
"jobStatus": 1,
"jobType": 1,
"tasks": [
{
"taskName": "Pick up at Warehouse",
"taskType": 1,
"shipmentProperty": { "shipmentType": 1 },
"place": {
"refId": "WH-001",
"name": "Main Warehouse",
"address": "100 Warehouse St, D7",
"lat": 10.74,
"lng": 106.72
}
},
{
"taskName": "Deliver to Customer A",
"taskType": 1,
"shipmentProperty": { "shipmentType": 2 },
"place": {
"refId": "CUST-A-001",
"name": "Customer A",
"address": "123 Le Loi, D1",
"lat": 10.7731,
"lng": 106.703
}
}
]
},
{
"jobName": "Job B",
"jobStatus": 1,
"jobType": 1,
"tasks": [
{
"taskName": "Pick up at Depot",
"taskType": 1,
"shipmentProperty": { "shipmentType": 1 },
"place": {
"refId": "DEPOT-002",
"name": "Depot B",
"address": "200 Industrial Rd, D12",
"lat": 10.756,
"lng": 106.695
}
},
{
"taskName": "Deliver to Customer B",
"taskType": 1,
"shipmentProperty": { "shipmentType": 2 },
"place": {
"refId": "CUST-B-001",
"name": "Customer B",
"address": "456 Hai Ba Trung, D3",
"lat": 10.7856,
"lng": 106.6862
}
}
]
}
]
}