40020: Batch request error

batch_request_error

A batch request completed with one or more of its items failing. Each failing item carries its own error, reported alongside this one.

What you should do

Inspect the individual results in the batch response. Each item carries its own success or error, so read the per-item errors to see which parts failed and why, then retry or handle just those. The top-level 40020 only signals that at least one item failed, not that the whole request was rejected.

Why it happens

Batch operations, such as batch publish, batch presence, or token revocation, process each item independently, and one or more items failed while others may have succeeded. This partial failure is reported as a single envelope error with the detail attached per item.

What you'll see

The error is reported with code 40020 and HTTP status 400. The message is Batched response includes errors, accompanied by a batch response whose failing entries each carry their own error.