---
title: "peek at the next undo"
method: GET
path: "/api/workspaces/{workspaceName}/undo/preview"
tags: ["workspace"]
---

# peek at the next undo

`GET /api/workspaces/{workspaceName}/undo/preview`

## Request

- The document declares no server URL.
- Auth: none declared

Get the change that the next undo would take back, so that the editor can ask before an undo that makes something disappear. Returns nothing when there is no history left.

## Path parameters

- `workspaceName` string, required

## Headers

- `Origin` string

## Response `200`

OK

- ChangeLogEntryDTO
  - `affectedKinds` string[]
  - `affectedSchemaNames` string[]
  - `changeId` string
  - `contextDeltas` ContextDeltaDTO[]
    - `additions` TripleDTO[]
      - `object` string
      - `predicate` string
      - `subject` string
    - `contextName` string
    - `deletions` TripleDTO[]
      - `object` string
      - `predicate` string
      - `subject` string
    - `schemaName` string
    - `values` ValueChangeDTO[]
      - `after` string
      - `before` string
      - `key` string
  - `message` string
  - `removedOnUndo` string[]
  - `restorableSchemaNames` string[]
  - `restoreTargetSchemaNames` string[]
  - `timestamp` string
  - `undone` boolean

## Changes

- **2026-11-23** `91d142ef001a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/soptim/apis/rdfarchitect-backend/changes/api/workspaces/:workspaceName/undo/preview/get.md)

---

[API](https://skmtc.dev/soptim/apis/rdfarchitect-backend.md) - [All operations](https://skmtc.dev/soptim/apis/rdfarchitect-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/soptim/apis/rdfarchitect-backend/revisions/21e6477d8dd8?raw)
