List Batches
The List Batches API is called to list current batch uploads. See the get_batch API to list a specific batch.
Method URL | GET http://<zapi_url>:<zapi_port>/api/v2/batch | |
HTTP Method | GET | |
Content Type | application/json | |
Required Headers | Authorization (set to ZAPI token) |
Example Response Payload
"batches" : [{
"batch_id": "b1cc71aef9989ead80012ac",
"state": "Done",
"lines": 22000,
"bundles": 3,
"bundles_completed": 3,
"created": "2022-10-12T07:20:50",
"upload_time_secs": 250,
"processing_time_secs": 45,
"processing_method": "delay",
"completion_time" : "2022-10-12T0755:17",
"retention_hours" : 8,
"expiration_time": "2022-10-12T15:55:17",
"reason" :""
},
{
"batch_id": "b2ef71aef9226ead80012ac",
"state": "Uploading",
"lines": 0,
"bundles": 0,
"bundles_bundles": 0,
"created": "2022-10-14T08:23:34",
"upload_time_secs": 10,
"processing_time_secs": 0,
"processing_method": "delay"
"completion_time" : "",
"retention_hours" : 8,
"expiration_time": "2022-10-14T16:23:34",
"reason" :""
}
]