Skip to content

inline-comments

create-inline-comment

Create inline comment

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.

Permissions required: Permission to view the content of the page or blogpost and its corresponding space. Permission to create comments in the space.

POST /inline-comments

FlagTypeRequiredDescription
--bodystringNorequest body (JSON string, @file, or - for stdin)

Example:

bash
cf inline-comments create-inline-comment

delete-inline-comment

Delete inline comment

Deletes an inline comment. This is a permanent deletion and cannot be reverted.

Permissions required: Permission to view the content of the page or blogpost and its corresponding space. Permission to delete comments in the space.

DELETE /inline-comments/{comment-id}

FlagTypeRequiredDescription
--comment-idstringYesThe ID of the comment to be deleted.

Example:

bash
cf inline-comments delete-inline-comment --comment-id <comment-id>

get-inline-comment-by-id

Get inline comment by id

Retrieves an inline comment by id

Permissions required: Permission to view the content of the page or blogpost and its corresponding space.

GET /inline-comments/{comment-id}

FlagTypeRequiredDescription
--body-formatstringNoThe content format type to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field.
--comment-idstringYesThe ID of the comment to be retrieved.
--include-likesstringNoIncludes likes associated with this inline comment in the response.
The number of results will be limited to 50 and sorted in the default sort order.
A meta and _links property will be present to indicate if more results are available and a link to retrieve the rest of the results.
--include-operationsstringNoIncludes operations associated with this inline comment in the response, as defined in the Operation object.
The number of results will be limited to 50 and sorted in the default sort order.
A meta and _links property will be present to indicate if more results are available and a link to retrieve the rest of the results.
--include-propertiesstringNoIncludes content properties associated with this inline comment in the response.
The number of results will be limited to 50 and sorted in the default sort order.
A meta and _links property will be present to indicate if more results are available and a link to retrieve the rest of the results.
--include-versionstringNoIncludes the current version associated with this inline comment in the response.
By default this is included and can be omitted by setting the value to false.
--include-versionsstringNoIncludes versions associated with this inline comment in the response.
The number of results will be limited to 50 and sorted in the default sort order.
A meta and _links property will be present to indicate if more results are available and a link to retrieve the rest of the results.
--versionstringNoAllows you to retrieve a previously published version. Specify the previous version's number to retrieve its details.

Example:

bash
cf inline-comments get-inline-comment-by-id --comment-id <comment-id>

get-inline-comment-children

Get children inline comments

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 the next URL present in the Link response header.

Permissions required: Permission to view the content of the page and its corresponding space.

GET /inline-comments/{id}/children

FlagTypeRequiredDescription
--body-formatstringNoThe content format type to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field.
--cursorstringNoUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
--idstringYesThe ID of the parent comment for which inline comment children should be returned.
--limitstringNoMaximum number of footer comments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.
--sortstringNoUsed to sort the result by a particular field.

Example:

bash
cf inline-comments get-inline-comment-children --id <id>

get-inline-comment-operations

Get permitted operations for inline comment

Returns the permitted operations on specific inline comment.

Permissions required: Permission to view the parent content of the inline comment and its corresponding space.

GET /inline-comments/{id}/operations

FlagTypeRequiredDescription
--idstringYesThe ID of the inline comment for which operations should be returned.

Example:

bash
cf inline-comments get-inline-comment-operations --id <id>

get-inline-comment-version-details

Get version details for inline comment version

Retrieves version details for the specified inline comment version.

Permissions required: Permission to view the content of the page or blog post and its corresponding space.

GET /inline-comments/{id}/versions/{version-number}

FlagTypeRequiredDescription
--idstringYesThe ID of the inline comment for which version details should be returned.
--version-numberstringYesThe version number of the inline comment to be returned.

Example:

bash
cf inline-comments get-inline-comment-version-details --id <id> --version-number <version-number>

get-inline-comment-versions

Get inline comment versions

Retrieves the versions of the specified inline comment.

Permissions required: Permission to view the content of the page or blog post and its corresponding space.

GET /inline-comments/{id}/versions

FlagTypeRequiredDescription
--body-formatstringNoThe content format types to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field.
--cursorstringNoUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
--idstringYesThe ID of the inline comment for which versions should be returned
--limitstringNoMaximum number of versions per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.
--sortstringNoUsed to sort the result by a particular field.

Example:

bash
cf inline-comments get-inline-comment-versions --id <id>

get-inline-comments

Get inline comments

Returns all inline comments. The number of results is limited by the limit parameter and additional results (if available) will be available through the next URL present in the Link response header.

Permissions required: Permission to view the content of the page and its corresponding space.

GET /inline-comments

FlagTypeRequiredDescription
--body-formatstringNoThe content format type to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field.
--cursorstringNoUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
--limitstringNoMaximum number of footer comments per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.
--sortstringNoUsed to sort the result by a particular field.

Example:

bash
cf inline-comments get-inline-comments

get-inline-like-count

Get like count for inline comment

Returns the count of likes of specific inline comment.

Permissions required: Permission to view the content of the page/blogpost and its corresponding space.

GET /inline-comments/{id}/likes/count

FlagTypeRequiredDescription
--idstringYesThe ID of the inline comment for which like count should be returned.

Example:

bash
cf inline-comments get-inline-like-count --id <id>

get-inline-like-users

Get account IDs of likes for inline comment

Returns the account IDs of likes of specific inline comment.

Permissions required: Permission to view the content of the page/blogpost and its corresponding space.

GET /inline-comments/{id}/likes/users

FlagTypeRequiredDescription
--cursorstringNoUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
--idstringYesThe ID of the inline comment for which like count should be returned.
--limitstringNoMaximum number of account IDs per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.

Example:

bash
cf inline-comments get-inline-like-users --id <id>

update-inline-comment

Update inline comment

Update an inline comment. This can be used to update the body text of a comment and/or to resolve the comment

Permissions required: Permission to view the content of the page or blogpost and its corresponding space. Permission to create comments in the space.

PUT /inline-comments/{comment-id}

FlagTypeRequiredDescription
--bodystringNorequest body (JSON string, @file, or - for stdin)
--comment-idstringYesThe ID of the comment to be retrieved.

Example:

bash
cf inline-comments update-inline-comment --comment-id <comment-id>