---
title: "Freeze a kept draft as a named person confirmed it"
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.

# Freeze a kept draft as a named person confirmed it

{/* 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;/finalize</code>
</div>
</div>

`{version, confirmedBy, newName?}`: the card is frozen under `version`, confirmed by the named person, with its decisions and none of the evidence they were made from. Refused unless the last test passed on every sample for the card as it is now. A draft that starts from no frozen version is refused as a new name when a frozen mapping of this company already reads every sample: save it as the next version of one of them, under its name, or send `newName: true` for a file from a different system. When the card makes the same decisions as the newest version of such a mapping, nothing is frozen and that version answers (200, `existing: true`).

## Path parameters

## Request body

`application/json`, required

## Status codes

| Status | Meaning |
|---|---|
| `200` | `{version, confirmedBy, confirmedAt, existing: true}`: a frozen mapping that reads these samples already makes exactly these decisions, so nothing was frozen and its version answers. |
| `201` | `{version, confirmedBy, confirmedAt}`, as `POST /v1/mappings` answers. |
| `400` | The card does not load under that version (`invalid_mapping_config`), or nobody who may confirm here was named (`unknown_confirming_user`). |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `404` | This company has no such draft (`unknown_mapping_draft`). |
| `409` | A column of the draft is still open (`open_columns`, naming each in `detail.columns`), no test passed on this very card (`untested_mapping`), the draft is finalized already (`mapping_draft_finalized`), that version is frozen already (`mapping_config_exists`), frozen mappings already read these samples and `version` is a version of none of them (`a_saved_mapping_reads_these_samples`, `detail.versions` naming the newest version of each), the version the draft starts from is no longer the newest of its mapping (`mapping_moved_on`, `detail.from` and `detail.newest`; replay the draft with `POST /v1/mappings/drafts/{id}/rebase`), or something else its `readiness` names keeps it from being saved (`mapping_not_ready`, with `detail.reason` one of `missing-required`, `codes-unanswered`, `payment-keys-unanswered`, `policy-refused`, `not-executable` or `reads-no-file`, and `detail.readiness`). Nothing was frozen. |

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

</div>
</div>

Source: https://docs.certinvo.com/reference/api/mappings/freeze-a-kept-draft-as-a-named-person-confirmed-it/index.mdx
