v1

latestOpenAPI 3.0.12026-07-13130168404.3 KB
Content versions

Restore content version

Restores a historical version to be the latest version. That is, a new version is created with the content of the historical version.

Permissions required: Permission to update the content.

post/wiki/rest/api/content/{id}/version

Path parameters

idstring required

The ID of the content for which the history will be restored.

Query parameters

expandstring[]

A multi-value parameter indicating which properties of the content to expand. By default, the content object is expanded.

  • collaborators returns the users that collaborated on the version.
  • content returns the content for the version.

Request body

operationKey'restore' required

Set to 'restore'.

Response

Returned if the version is restored.

whenstring date-time nullable required
friendlyWhenstring nullable
messagestring nullable
numberinteger required

Set this to the current version number incremented by one

minorEditboolean required

If minorEdit is set to 'true', no notification email or activity stream will be generated for the change.

_linksGenericLinks
contentTypeModifiedboolean

True if content type is modifed in this version (e.g. page to blog)

confRevstring nullable

The revision id provided by confluence to be used as a revision in Synchrony

syncRevstring nullable

The revision id provided by Synchrony

syncRevSourcestring nullable

Source of the synchrony revision