---
title: "Undo"
method: POST
path: "/admin/knowledge/merges/{merge_id}/undo"
tags: ["admin"]
---

# Undo

`POST /admin/knowledge/merges/{merge_id}/undo`

## Request

- Base URL: `https://api-docs.upsmith.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.upsmith.com/admin/knowledge/merges/{merge_id}/undo`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Path parameters

- `merge_id` string, uuid, required

## Headers

- `organization-id` string, nullable
- `timezone` string
- `x-user-id` string, nullable
- `x-actor-email` string, nullable
- `x-request-source` string, nullable
- `x-operation-id` string, nullable
- `x-commit-message` string, nullable
- `x-confirmation-id` string, nullable
- `x-chat-id` string, nullable

## Request body

- MergeUndoRequest
  - `expected_state_hash` string, required

## Response `200`

Successful Response

- MergeReceiptResponse
  - `merge_id` string, required
  - `merged_entity_id` string, required
  - `into_entity_id` string, required
  - `status` 'accepted' | 'undone', required
  - `decided_by` string, required
  - `decided_at` string, date-time, required
  - `undone_by` string, nullable, required
  - `undone_at` string, date-time, nullable, required

## Other responses

- `422`: Validation Error

---

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