POST /wiki/rest/api/content/{id}/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.

Servers

Path parameters

Name Type Required Description
id String Yes

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

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Query parameters

Name Type Required Description
expand[] Array No

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 fields

Name Type Required Description
params Object Yes
params.restoreTitle Boolean No

If true, the content title will be the same as the title from the version restored. Defaults to false.

Default value: false

params.message String Yes

Description for the version.

params.versionNumber Integer Yes

The version number to be restored.

operationKey String Yes

Set to 'restore'.

Possible values:

  • "restore"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.