Database
Execute batch SQL statements in a transaction
Execute multiple SQL statements atomically in a single transaction: all succeed or all roll back, no partial writes on a mid-batch failure. Each statement accepts its own positional parameters via args. mode selects the transaction variant — "write" (default), "read" for read-only batches, or "deferred".
post/api/db/{project_id}/batch
Request
- Base URLhttps://core.blink.new
- URLhttps://core.blink.new/api/db/{project_id}/batch
- AuthHTTP bearer
Path parameters
project_idstring required
Example:my-project-123
Unique identifier for the project
Request body
Example request
{
"statements": [
{
"sql": "INSERT INTO users (name, email) VALUES ($1, $2)",
"args": [
"John Doe",
"john@example.com"
]
}
]
}Response
Batch executed successfully
Changes
No recorded changes to this operation across all 1 revision of this API.