Skip to main content
POST
/
query
/
batch
Execute batch queries
curl --request POST \
  --url http://localhost:3000/query/batch \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "queries": [
    {
      "sql": "<string>",
      "parameters": [
        "<any>"
      ]
    }
  ],
  "transaction": false
}
'

Authorizations

X-API-Key
string
header
required

API key for authentication. Format: zdb_your_api_key_here

Body

application/json
queries
object[]
required
Required array length: 1 - 100 elements
transaction
boolean
default:false

Execute all queries in a single transaction

Response

Batch queries executed successfully