CommentApi class
This document describes Confluence's v2 APIs. This is intended to be an iteration on the existing Confluence Cloud REST API with improvements in both endpoint definitions and performance.
Constructors
- CommentApi(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
- Create a footer comment. This can be at the top level (specifying pageId or blogPostId in the request body) or as a reply (specifying parentCommentId in the request body).
-
createInlineComment(
{bool? serializeIdsAsStrings, required CreateInlineCommentModel body}) → Future< InlineCommentModel> - Create an inline comment. This can be at the top level (specifying pageId or blogPostId in the request body) or as a reply (specifying parentCommentId in the request body). Note the inlineCommentProperties object in the request body is used to select the text the inline comment should be tied to. This is what determines the text highlighting when viewing a page in Confluence.
- Deletes a footer comment. This is a permanent deletion and cannot be reverted.
-
deleteInlineComment(
int commentId) → Future< void> - Deletes an inline comment. This is a permanent deletion and cannot be reverted.
-
Returns the root footer comments of specific blog post. The number of
results is limited by the
limit
parameter and additional results (if available) will be available through thenext
URL present in theLink
response header. -
getBlogPostInlineComments(
{required int id, String? bodyFormat, String? sort, String? cursor, int? limit, bool? serializeIdsAsStrings}) → Future< MultiEntityResult< BlogPostInlineCommentModel> > -
Returns the root inline comments of specific blog post. The number of
results is limited by the
limit
parameter and additional results (if available) will be available through thenext
URL present in theLink
response header. - Retrieves a footer comment by id
-
Returns the children footer comments of specific comment. The number of
results is limited by the
limit
parameter and additional results (if available) will be available through thenext
URL present in theLink
response header. -
Returns all footer comments. The number of results is limited by the
limit
parameter and additional results (if available) will be available through thenext
URL present in theLink
response header. -
getInlineCommentById(
{required int commentId, String? bodyFormat, int? version, bool? serializeIdsAsStrings}) → Future< InlineCommentModel> - Retrieves an inline comment by id
-
getInlineCommentChildren(
{required int id, bool? serializeIdsAsStrings, String? bodyFormat, String? sort, String? cursor, int? limit}) → Future< MultiEntityResult< InlineCommentChildrenModel> > -
Returns the children inline comments of specific comment. The number of
results is limited by the
limit
parameter and additional results (if available) will be available through thenext
URL present in theLink
response header. -
getInlineComments(
{bool? serializeIdsAsStrings, String? bodyFormat, String? sort, String? cursor, int? limit}) → Future< MultiEntityResult< InlineCommentModel> > -
Returns all inline comments. The number of results is limited by the
limit
parameter and additional results (if available) will be available through thenext
URL present in theLink
response header. -
Returns the root footer comments of specific page. The number of results
is limited by the
limit
parameter and additional results (if available) will be available through thenext
URL present in theLink
response header. -
getPageInlineComments(
{required int id, String? bodyFormat, String? sort, String? cursor, int? limit, bool? serializeIdsAsStrings}) → Future< MultiEntityResult< PageInlineCommentModel> > -
Returns the root inline comments of specific page. The number of results
is limited by the
limit
parameter and additional results (if available) will be available through thenext
URL present in theLink
response header. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
- Update a footer comment. This can be used to update the body text of a comment.
-
updateInlineComment(
{required int commentId, bool? serializeIdsAsStrings, required UpdateInlineCommentModel body}) → Future< InlineCommentModel> - Update an inline comment. This can be used to update the body text of a comment and/or to resolve the comment
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited