Class ConfluenceRestClientContentVersionsConsumerApi

java.lang.Object
io.github.primelib.confluence4j.rest.v1.client.ConfluenceRestClientContentVersionsConsumerApi

@Generated("io.github.primelib.primecodegen") public class ConfluenceRestClientContentVersionsConsumerApi extends Object
ConfluenceRestClientContentVersionsConsumerApi
  • Constructor Details

  • Method Details

    • PostContentByIDVersionV1

      public Version PostContentByIDVersionV1(Consumer<PostContentByIDVersionV1OperationSpec> spec)
      PostContentByIDVersionV1 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](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
      Parameters:
      spec - a consumer that creates the payload for this operation. Supports the following properties:
      • id: The ID of the content for which the history will be restored.
      • expand: 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.
      • payload: The content version to be restored.
    • DeleteContentByIDVersionByVersionNumberV1

      public void DeleteContentByIDVersionByVersionNumberV1(Consumer<DeleteContentByIDVersionByVersionNumberV1OperationSpec> spec)
      DeleteContentByIDVersionByVersionNumberV1 Delete content version 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.
      Parameters:
      spec - a consumer that creates the payload for this operation. Supports the following properties:
      • id: The ID of the content that the version will be deleted from.
      • versionNumber: The number of the version to be deleted. The version number starts from 1 up to current version.