Skip to content
LogoLogo

Commands

Undo a reversible command

POST/api/v1/commands/{command_id}/undo

Executes the server-owned inverse as a new authorized mutation. The command must belong to the current actor and Workspace, remain within its undo window, and still own the fields it changed. Unrelated edits do not block reversal; a later edit to the same field returns 409 command_conflict.

Path Parameters

command_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Idempotency-KeyRequired
string·min 16·max 200

Opaque client-generated key for safely retrying this operation.

Responses

Redo a previously undone command

POST/api/v1/commands/{command_id}/redo

Executes the original server-owned forward mutation with the same ownership, expiry, permission, and field-aware conflict checks as Undo.

Path Parameters

command_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Idempotency-KeyRequired
string·min 16·max 200

Opaque client-generated key for safely retrying this operation.

Responses