---
title: "Retire a mapping, or bring it back"
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.

# Retire a mapping, or bring it back

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

Retires every version of one of your mappings by its `name`, or with `restore: true` brings it back. A retired mapping is kept: each version is still listed and readable with `/v1/mappings/{version}`, and an invoice it made still names it. No new file is read through a retired mapping: it is not tried when a file names no mapping, and a file that names one of its versions is refused with 409 `mapping_retired`. Certinvo retires a mapping itself when it decides exactly what another one decides; such a retirement names no person.

## Request body

`application/json`, required

## Status codes

| Status | Meaning |
|---|---|
| `200` | The mapping was already retired, or already live. Nothing was written; the body is its state. |
| `201` | `{name, retired, into, why, by, at}`: the row written. |
| `400` | The body is not a retirement (`invalid_retirement`, `invalid_json`), or no person who may act here was named (`unknown_confirming_user`). |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `404` | You have no saved mapping of that name (`unknown_mapping_config`). |

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

</div>
</div>

Source: https://docs.certinvo.com/reference/api/mappings/retire-a-mapping-or-bring-it-back/index.mdx
