ContentVersionsApi class

This document describes the REST API and resources provided by Confluence. The REST APIs are for developers who want to integrate Confluence into their application and for administrators who want to script interactions with the Confluence server.Confluence's REST APIs provide access to resources (data entities) via URI paths. To use a REST API, your application will make an HTTP request and parse the response. The response format is JSON. Your methods will be the standard HTTP methods like GET, PUT, POST and DELETE. Because the REST API is based on open standards, you can use any web development language to access the API.

Constructors

ContentVersionsApi(ApiClient _client)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteContentVersion({required String id, required int versionNumber}) Future<void>
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.
getContentVersion({required String id, required int versionNumber, List<String>? expand}) Future<Version>
Deprecated, use Confluence's v2 API.
getContentVersions({required String id, int? start, int? limit, List<String>? expand}) Future<VersionArray>
Deprecated, use Confluence's v2 API.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restoreContentVersion({required String id, List<String>? expand, required VersionRestore body}) Future<Version>
Restores a historical version to be the latest version. That is, a new version is created with the content of the historical version.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited