# Write many records' cells at once

Merge cells into many records on one page in a single request — the batch form of PATCH /v1/definitions/:key/rows/:rowId, and what a grid paste, fill-down or cleared selection sends. Body is {rows: [{id, cells: {columnId: text}}]}, at most 1000 rows; each row is merged, so a column a row leaves out keeps what it had, and every record still gets its own notification and activity entry. Answers {updated, failed: [{id, error}]} — a record the rules refuse fails alone and the rest still land.

Access class: `def:read`.

## Endpoint

`PATCH /v1/definitions/{key}/cells`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "rows": [
      {
        "cells": {},
        "id": ""
      }
    ]
  },
  "params": {
    ":key": "string"
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "failed": [
      {
        "error": "string",
        "id": ""
      }
    ],
    "updated": 1.5
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
