Close Scan Batch

Url

/file/batch/<batch_id>/close

Method

POST

Header

Description

apikey (OPTIONAL)

User's session id, if it was set for creation it is required

Result Code

Description

200

Batch closed successfully

400

Bad request, (e.g.: wrong header values)

403

Access denied

404

Batch not found

500

Internal server error

HTTP status code: 200

{
"batch_id": "092876200fb54cfb80b6e3332c410ae9",
"is_closed": true,
"batch_files": {
"batch_count": 1
},
"process_info": {
"blocked_reason": "",
"file_type_skipped_scan": false,
"profile": "File scan",
"result": "Processing",
"user_agent": "webscan"
},
"scan_results": {
"batch_id": "092876200fb54cfb80b6e3332c410ae9",
"scan_all_result_a": "In Progress",
"scan_all_result_i": 255,
"scan_details": {},
"start_time": "2017-05-23T11:22:03.010Z",
"total_avs": 14,
"total_time": 995
}
}

HTTP status code: 500, 403, 400

{
"err": <error message>
}