Class ContentVersionResource
- java.lang.Object
-
- com.atlassian.confluence.plugins.restapi.resources.ContentVersionResource
-
public class ContentVersionResource extends Object
-
-
Constructor Summary
Constructors Constructor Description ContentVersionResource(ContentVersionService contentVersionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsedeleteContentHistory(ContentId contentId, int versionNumber)Delete a historical version of a page or a blogpost.
-
-
-
Constructor Detail
-
ContentVersionResource
public ContentVersionResource(ContentVersionService contentVersionService)
-
-
Method Detail
-
deleteContentHistory
@PublicApi public javax.ws.rs.core.Response deleteContentHistory(ContentId contentId, int versionNumber)
Delete a historical version of a page or a blogpost. Current user must have edit permission on content, or it will throw a permission exception.- Parameters:
contentId- id for the historical content to be deleted.versionNumber- version number starts from 1 up to current version.- Returns:
- No Content
-
-