---
title: "Replay a draft on the newest version"
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.

# Replay a draft on the newest version

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

Makes a draft whose version was saved over since (`mapping_moved_on` on its finalize) again from the newest version of its mapping: the same samples, the newest version's fields carried over, then your own decisions applied again in order. The old draft is let go and the new one answers, with `replayed`, how many of your decisions were applied again; any that no longer apply are named in `notApplied`. A draft that starts from the newest version is answered as it is, with `replayed: 0`.

## Path parameters

## Status codes

| Status | Meaning |
|---|---|
| `200` | The draft, as `GET /v1/mappings/drafts/{id}` answers it, with `replayed`. |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `404` | This company has no such draft (`unknown_mapping_draft`), or the newest version cannot be read (`unknown_mapping_config`). |
| `409` | The draft is finalized already (`mapping_draft_finalized`). |

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

</div>
</div>

Source: https://docs.certinvo.com/reference/api/mappings/replay-a-draft-on-the-newest-version/index.mdx
