# Update a file's extracted values (fields and table/list cells)
Source: https://docs.file.ai/api-reference/files/update-a-files-extracted-values-fields-and-table-list-cells

> Update document form values for a file, for both scalar fields and table/list cells.

patch /prod/v1/files/{fileId}/values

Update document form values for a file, for both scalar fields and table/list cells.

The `schemaValueId` field is the `id` returned by `GET /files/:fileId/values` (the form value id).

The `fieldPaths` field is an array of updates. Each entry must specify **exactly one** of:

- `value`: the new value for a scalar field. The `path` is the field title (the leading slash is optional, e.g. `/Supplier country`).

- `cells`: cell-level updates for a table/list field. The `path` is the table field title (e.g. `Line_items`). Each cell contains:

  - `rowIndex`: the zero-based row index within the table.

  - `column`: the column title (must match one of the table columns).

  - `value`: the new cell value.

Table updates are a full read-modify-write: the complete CSV-backed rows are loaded, the specified cells are applied, and the table is re-persisted (updating the preview, document history, audit trail, and re-flattening the document).
