---
title: "Update a validation result"
method: PATCH
path: "/v3/validation_results/{id}"
tags: ["Validation Results"]
---

# Update a validation result

`PATCH /v3/validation_results/{id}`

Update a validation result.

## Path parameters

- `id` integer, required — Validation Result's ID

## Request body

- ValidationResultUpdate
  - `annotations` integer[] — List of annotation ids that were validated
  - `passed` boolean, nullable — Whether the validation passed or not, null if the validation was not applicable
  - `ruleSlug` string — The kebab-case slug of the validation rule that was applied
  - `message` string — Message explaining why the validation failed
  - `document` string — Unique identifier for the document

## Response `200`

Successfully updated validation result.

- ValidationResult — Validation result arising from a ValidationRule
  - `id` integer, required — Validation Result's ID
  - `annotations` integer[], required — List of annotation ids that were validated
  - `passed` boolean, nullable, required — Whether the validation passed or not, null if the validation was not applicable
  - `ruleSlug` string, required — The kebab-case slug of the validation rule that was applied
  - `message` string, required — Message explaining why the validation failed
  - `document` string, required — Unique identifier for the document

## Other responses

- `400` — Bad request. If it is a validation error will contain a list of each invalid field
- `401` — Authorisation error
- `default` — UnexpectedError

---

[API](https://skmtc.net/affinda/apis/affinda-api-2.md) · [All operations](https://skmtc.net/affinda/apis/affinda-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/affinda/affinda-api-2/versions/6772e50cb58e/schema)
