---
title: "Choose the mapping for a layout"
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.

# Choose the mapping for a layout

{/* 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/layout-choices</code>
</div>
</div>

Answers a 409 `several_mappings_fit` once for every file of that layout. Send the `layout` the 409 named and the version you chose. From then on a file of that layout goes through that mapping with nothing asked, and through its newest version when it gets a new one. A later answer for the same layout counts over an earlier one. No answer is ever changed or deleted. Two mappings that read a file and decide the same never ask: the newest reads it.

## Request body

`application/json`, required

## Status codes

| Status | Meaning |
|---|---|
| `201` | `{layout, name}`: the layout and the name of the mapping it goes through from now on. |
| `400` | The body has no `layout` as the 409 named it, or no `mappingVersion` (`invalid_layout_choice`). |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `404` | This company froze no such version (`unknown_mapping_config`). |

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

</div>
</div>

Source: https://docs.certinvo.com/reference/api/mappings/choose-the-mapping-for-a-layout/index.mdx
