(fix) changes hardcoded "api/batch" endpoint to "batch"