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
- https://your-domain.atlassian.net
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
|
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 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:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- 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.
- Click Test request to test run your request to the API and see the API's response.