Miscellaneous

Batch

Batch processing allows you to submit arbitrary sequence of requests within a single HTTPS request.

Any type of request from the above documentation may be used in the Batch, and the Batch may combine different types of requests arbitrarily as well.

Using Batch requests is beneficial for example, when synchronizing the catalog of items or uploading historical interaction data, as sending the data in Batch is considerably faster than sending the individual requests (thanks to optimizations and reducing network and HTTPS overhead).

post/{databaseId}/batch/

Path parameters

databaseIdstring required

ID of your database.

Request body

requestsobject[] required

JSON array containing the requests.

distinctRecommsboolean

Makes all the recommended items for a certain user distinct among multiple recommendation requests in the batch.

Response

Successful operation. There is an array with responses. The order of the responses in the array follows the order of the sent requests.

Changes