---
title: "Update Rows"
method: PATCH
path: "/api/datastore/{block_id}/rows"
tags: ["datastore"]
---

# Update Rows

`PATCH /api/datastore/{block_id}/rows`

## Request

- Base URL: `https://app.ctlsurf.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ctlsurf.com/api/datastore/{block_id}/rows`
- Auth: HTTP bearer

Bulk-update rows matching a filter. Body: {where: {...}, data: {Column: value, ...}}.

Only the provided fields are merged into each matched row (like update_row). An empty/omitted
`where` matches all rows in the datastore.

## Path parameters

- `block_id` string, uuid, required

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ctlsurf/apis/notebook-control-plane.md) · [All operations](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/revisions/ddfbbe20d5ce?raw)
