content-draft

Undo the last change to a content draft

post/api/v1/content-draft/{draftId}/undo

Path parameters

draftIdstring uuid required

The unique identifier for the draft

Request body

baseVersioninteger required

The record version the editor was showing when the author pressed undo or redo; 409 when the draft has moved on. The write counter, never cursorVersion.

Response

canRedoboolean required

Whether a redo would move the draft.

canUndoboolean required

Whether another undo would move the draft.

changedSectionsstring[] required

Names of the top-level draft sections the move changed. Empty when the version landed on held identical content, or when nothing moved at all. The values themselves are in draft.

cursorVersionnumber required

The version whose content the draft now shows. Differs from version once something has been undone.

draftIdstring required

The draft this move was applied to

movedboolean required

False when there was nothing left in that direction, or when the draft was already showing the requested version. Nothing was written.

summarystring required

What happened, ready to show the author - including the reason a refused move refused.

versionnumber required

The write counter after the move. A move is a write, so this climbs even though the content is older. Send it as baseVersion on the next request.

Changes