Batch API example