---
title: "Batch update SqlDashboardBlock"
method: PATCH
path: "/api/v3/sql-dashboard-block:batch-update"
tags: ["SQL Dashboard Block"]
---

# Batch update SqlDashboardBlock

`PATCH /api/v3/sql-dashboard-block:batch-update`

## Request

- Base URL: `https://{tenant_name}.benchling.com`
- URL: `https://{tenant_name}.benchling.com/api/v3/sql-dashboard-block:batch-update`
- Auth: HTTP bearer

Batch update SqlDashboardBlock synchronously in one transaction. Maximum 25 items per request.

## Headers

- `EARLY-ACCESS` string

## Request body

- object
  - `items` UpdateSqlDashboardBlockInputWithPathParams[], required
    - `description` string: A human-readable description of the block.
    - `id` string, required
    - `name` string: The display name of the block.
    - `sqlQuery` string: The SQL query executed against the Benchling data warehouse. May reference dashboard parameters using {{parameter_name}} placeholder syntax.

## Response `200`

OK

- SqlDashboardBlockBatchupdateResponse200
  - `items` SqlDashboardBlock[], required
    - `__typename` string
    - `description` string
    - `id` string
    - `index` integer
    - `name` string
    - `sqlQuery` string

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/benchling/apis/benchling-api.md) - [All operations](https://skmtc.dev/benchling/apis/benchling-api/llms.txt) - [OpenAPI document](https://skmtc.dev/benchling/apis/benchling-api/revisions/3873a10bf7b8?raw)
