---
title: "Execute a policy given a batch of inputs"
method: POST
path: "/v1/batch/data/{path}"
---

# Execute a policy given a batch of inputs

`POST /v1/batch/data/{path}`

## Path parameters

- `path` string, urlPath, required

## Query parameters

- `pretty` boolean
- `provenance` boolean
- `explain` 'notes' | 'fails' | 'full' | 'debug'
- `metrics` boolean
- `instrument` boolean
- `strict-builtin-errors` boolean

## Headers

- `Content-Encoding` 'gzip'
- `Accept-Encoding` 'gzip'

## Request body

- object
  - `inputs` object, required

## Response `200`

All batched policy executions succeeded.
The server also returns 200 if the path refers to an undefined document. In this case, responses will be empty.

- object
  - `batch_decision_id` string
  - `metrics` object — If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps.
  - `responses` object

## Other responses

- `207` — Mixed success and failures.
- `400` — Bad Request
- `500` — Server Error. All requests returned a 500 error.

---

[API](https://skmtc.dev/open-policy-agent/apis/eopa-rest-api.md) · [All operations](https://skmtc.dev/open-policy-agent/apis/eopa-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/open-policy-agent/eopa-rest-api/revisions/040f3d9e6786/schema)
