Implements #1255 using the following path /rest/batch