---
title: "Undo a move to live"
method: POST
path: "/project/move-to-live/undo"
tags: ["Project"]
---

# Undo a move to live

`POST /project/move-to-live/undo`

## Request

- Base URL: `https://api.hypamoon.com/api/v1`
- URL: `https://api.hypamoon.com/api/v1/project/move-to-live/undo`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://app.hypamoon.com/oauth/authorize`, token URL `https://api.hypamoon.com/oauth/token`, scopes: `project:write`)

Moves the sites, collections, apps and agents of a move back to the test project, within 24 hours. The sites get the test form token back as a new version, and the live token is revoked. A copied collection stays in the live project. Without move_id the latest move of this project. After 24 hours: 409 with how support can still help.

## Request body

- MoveToLiveUndoInput: Undo a move to live within 24 hours.
  - `move_id` string, uuid: Optional. The id from move_to_live. Leave it out to undo the latest move of this project.

## Response `200`

What went back.

- MoveToLiveUndo
  - `id` string, required
  - `status` 'undone' | 'partly_undone', required
  - `sites` string[], required
  - `collections` number, required
  - `apps` number, required
  - `agents` number, required
  - `domains` number, required
  - `errors` string[], required
  - `summary` string, required
  - `next_step` string, required

## Other responses

- `400`: Bad Request: invalid_json.
- `401`: Unauthorized: unauthorized, missing_api_key, invalid_api_key, api_key_revoked, project_deleted.
- `403`: Forbidden: project_not_enabled, key_mode_mismatch, missing_scope, verification_required, forbidden.
- `404`: Not Found: not_found.
- `409`: Conflict: conflict.
- `422`: Unprocessable Content: validation_failed.
- `429`: Too Many Requests: rate_limited.
- `500`: Internal Server Error: internal_error.
- `503`: Service Unavailable: service_unavailable.

---

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