> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crewship.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk Update Rows

> Update all rows matching a filter

## Path Parameters

<ParamField path="id" type="string" required>
  Table ID
</ParamField>

## Request

<ParamField body="filter" type="object" required>
  Filter expression selecting rows to update
</ParamField>

<ParamField body="update" type="object" required>
  Column values to apply to all matched rows
</ParamField>

## Response

<ResponseField name="updated" type="number">
  Number of rows updated
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH https://api.crewship.dev/v1/tables/tbl_abc123xyz789/rows \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "filter": {
        "and": [
          {"column": "status", "operator": "eq", "value": "new"}
        ]
      },
      "update": {
        "status": "qualified"
      }
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "updated": 18
  }
  ```
</ResponseExample>
