---
title: "Create a validation result"
method: POST
path: "/v3/validation_results"
tags: ["Validation Results"]
---

# Create a validation result

`POST /v3/validation_results`

Create a validation result.

## Request body

- ValidationResultCreate
  - `annotations` integer[], required — 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, 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

## Response `201`

Successfully created a 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)
