{ "opencollection": "1.0.0", "info": { "name": "Atlassian Admin Account Content Versions API", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Content Versions", "type": "folder" }, "items": [ { "info": { "name": "Atlassian Get Content Versions", "type": "http" }, "http": { "method": "GET", "url": "https://api.atlassian.com/wiki/rest/api/content/:id/version", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the content to be queried for its versions." }, { "name": "start", "value": "", "type": "query", "description": "The starting index of the returned versions." }, { "name": "limit", "value": "", "type": "query", "description": "The maximum number of versions to return per page.\nNote, this may be restricted by fixed system limits." }, { "name": "expand", "value": "", "type": "query", "description": "A multi-value parameter indicating which properties of the content to expand. By default, the `content`\nobject is expanded.\n\n- `collaborators` returns the users that collaborated on the version.\n- `content` returns the content for the version." } ] }, "docs": "Deprecated, use [Confluence's v2 API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).

Returns the versions for a piece of content in descending order.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
Permission to view the content. If the content is a blog post, 'View' permission
for the space is required." }, { "info": { "name": "Atlassian Restore Content Version", "type": "http" }, "http": { "method": "POST", "url": "https://api.atlassian.com/wiki/rest/api/content/:id/version", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the content for which the history will be restored." }, { "name": "expand", "value": "", "type": "query", "description": "A multi-value parameter indicating which properties of the content to expand. By default, the `content`\nobject is expanded.\n\n- `collaborators` returns the users that collaborated on the version.\n- `content` returns the content for the version." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Restores a historical version to be the latest version. That is, a new version
is created with the content of the historical version.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
Permission to update the content." }, { "info": { "name": "Atlassian Get Content Version", "type": "http" }, "http": { "method": "GET", "url": "https://api.atlassian.com/wiki/rest/api/content/:id/version/:versionNumber", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the content to be queried for its version." }, { "name": "versionNumber", "value": "", "type": "path", "description": "The number of the version to be retrieved." }, { "name": "expand", "value": "", "type": "query", "description": "A multi-value parameter indicating which properties of the content to expand. By default, the `content`\nobject is expanded.\n\n- `collaborators` returns the users that collaborated on the version.\n- `content` returns the content for the version." } ] }, "docs": "Deprecated, use [Confluence's v2 API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).

Returns a version for a piece of content.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
Permission to view the content. If the content is a blog post, 'View' permission
for the space is required." }, { "info": { "name": "Atlassian Delete Content Version", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.atlassian.com/wiki/rest/api/content/:id/version/:versionNumber", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the content that the version will be deleted from." }, { "name": "versionNumber", "value": "", "type": "path", "description": "The number of the version to be deleted. The version number starts\nfrom 1 up to current version." } ] }, "docs": "Delete a historical version. This does not delete the changes made to the
content in that version, rather the changes for the deleted version are
rolled up into the next version. Note, you cannot delete the current version.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
Permission to update the content." } ] } ], "bundled": true }