---
title: "Restore a saved copy of an active legacy code without changing the invitation"
method: PUT
path: "/admin/signup-invites/{id}/code"
tags: ["Admin"]
---

# Restore a saved copy of an active legacy code without changing the invitation

`PUT /admin/signup-invites/{id}/code`

## Request

- Base URL: `https://api.percher.run`
- URL: `https://api.percher.run/admin/signup-invites/{id}/code`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `code` string, required

## Response `200`

Matching saved code retained encrypted

## Other responses

- `400`: Invalid or nonmatching code
- `401`: Authentication required
- `403`: Admin account required
- `404`: Invite not found
- `409`: Invite no longer active

---

[API](https://skmtc.dev/percher/apis/percher-api.md) · [All operations](https://skmtc.dev/percher/apis/percher-api/llms.txt) · [OpenAPI document](https://skmtc.dev/percher/apis/percher-api/revisions/d9e7089c21e5?raw)
