# Change the named fields of a row

`PATCH /data/{type}/{id}` · Rivier · content

Change the named fields of a row; it is checked again against the type's newest version. Heard as data.<type>.changed.

- Scope: content:write
- Mcp: rivier_data_change
- Graphql: Mutation.contentDataRowChange
- Sdk: content.dataRow.change
- Cli: content data row change

## Parameters

- `type` (path, required), string
- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "fields": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "fields"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X PATCH 'https://api.rivier.ai/data/{type}/{id}' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "fields": {}
}'
```
