---
title: "Undo a saved editor action at the expected revision"
method: POST
path: "/projects/{projectId}/editor-commands/undo"
tags: ["Timeline Editing"]
---

# Undo a saved editor action at the expected revision

`POST /projects/{projectId}/editor-commands/undo`

## Request

- Base URL: `https://blitzreels.com/api/v1`
- URL: `https://blitzreels.com/api/v1/projects/{projectId}/editor-commands/undo`
- Auth: API key in header `Authorization`

Undo a saved editor action at the expected revision.

## Path parameters

- `projectId` string, required

## Request body

- object
  - `actionId` string, required
  - `expectedRevision` integer, required

## Response `200`

Successful response

- object
  - `projectId` string, required
  - `revision` number, required
  - `baseRevision` number, required
  - `mutationReceiptId` string, required
  - `replayed` boolean, required
  - `affectedTimelineItemIds` string[], required
  - `createdTimelineItemIds` string[], required
  - `deletedTimelineItemIds` string[], required
  - `warnings` string[], required
  - `result` object, required

## Other responses

- `400`: Invalid input data
- `401`: Authorization not provided
- `403`: Insufficient access
- `500`: Internal server error

---

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