Scan file in batch

Using /file API

For scanning file we are using the traditional /file API. These are just additions to 7.1.3.1. Process a file:

Header

Description

batch (OPTIONAL)

Batch id to scan with, coming from 7.1.4.1 Initiate Batch (If it is not given, it will be a single file scan.)

rule (OPTIONAL)

If rule header is set, then it MUST match the one configured for the choosen batch otherwise the request will result in error

user-agent (OPTIONAL)

If batch is set, this won't be used (provide compatibility for user_agent also, user-agent is the higher priority if both present)

.