---
title: "Test a kept draft on every sample"
description: "Mappings API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Test a kept draft on every sample

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="post">POST</span>
<code class="cvo-op-path-code">/v1/mappings/drafts/&#123;id&#125;/test</code>
</div>
</div>

The card over every kept sample, read the way the runtime reads a file, as `POST /v1/mappings/tests` runs it. The result is kept with the card it ran on: finalize asks for a passing test of the card as it is.

## Path parameters

## Status codes

| Status | Meaning |
|---|---|
| `200` | `{tested, passed, failed, samples}`: one entry per sample, in order. A failed sample is an answer about the draft, not an error of this request. |
| `400` | The card does not load (`invalid_mapping_config`), or says nothing about reading a file (`config_reads_no_file`). |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `404` | This company has no such draft (`unknown_mapping_draft`). |
| `409` | `mapping_draft_finalized`: the draft is finalized and never changes. |
| `413` | A sample read into more than one request may hold (`file_too_large_to_read`). |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/mappings/test-a-kept-draft-on-every-sample/index.mdx
