Skip to main content
POST
Undo a change

Authorizations

Authorization
string
header
required

A VidJutsu API key (vj_live_...) from POST /auth/verify or POST /keys, or an OAuth access token (MCP clients).

Headers

VidJutsu-Version
string

The API version you wrote your integration against, a date. Without it you get the latest version. The current version is 2026-11-03. See https://docs.vidjutsu.ai/api-reference/introduction#versioning.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-11-03"

Idempotency-Key
string

Makes a write safe to retry: the same key returns the first result instead of doing the work twice. Up to 128 printable characters.

Maximum string length: 128

Path Parameters

project
string
required

Project name (letters, digits, '-', '_').

Body

application/json

The revision to undo and, optionally, one change of it (change, its index in history). Undoing the head as a whole restores its parent; anything else puts back what the change did on top of the current head, so later edits stay.

revision
string
required

The revision that made the change.

author
string | null

Who is doing it, as history and Activity name them. Default: you.

branch
string | null
change
integer<uint> | null

Which change (its index in history); absent: the whole revision.

Required range: x >= 0
expected_head
string | null
idempotency_key
string | null
summary
string | null

Response

Committed

branch
string
required
duration_seconds
number
required
parent
string
required
project
string
required
revision
string
required
restored
string

The revision whose timeline came back.