---
title: "Edit a finding"
method: PATCH
path: "/api/v1/datasets/{id}/findings/{fid}"
---

# Edit a finding

`PATCH /api/v1/datasets/{id}/findings/{fid}`

## Request

- Base URL: `https://rows.page`
- URL: `https://rows.page/api/v1/datasets/{id}/findings/{fid}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Rows-Token`

## Request body

- FindingInput
  - `title` string, required
  - `note` string, nullable
  - `q` string: rows.page query language, e.g. country:NL price:>20
  - `sort` string: e.g. -price,name
  - `cols` string: e.g. id,price
  - `sql` string: SQL against the table data
  - `version` integer, nullable
  - `row_count` integer, nullable

## Response `200`

OK

- Finding
  - `id` string
  - `version` integer, nullable
  - `title` string
  - `note` string, nullable
  - `view` object
    - `q` string
    - `sort` string
    - `cols` string
    - `sql` string
  - `row_count` integer, nullable
  - `position` integer
  - `created_via` string
  - `created_at` string

## Other responses

- `400`: Error
- `401`: Error
- `403`: Error
- `404`: Error

---

[API](https://skmtc.dev/rows/apis/rows-page-api.md) · [All operations](https://skmtc.dev/rows/apis/rows-page-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rows/apis/rows-page-api/revisions/98dacb9eeca7?raw)
