How to add comment in page history

How can i add such comment from REST API

can't see it in the GUI too.

confluence-page-comment.png

 

2 answers

1 accepted

4 votes
Answer accepted
Ran Ding Atlassian Team Aug 24, 2017

History comment can be added via REST API by sending: 

PUT /wiki/rest/api/content/{content_id}

{
"id": "content_id",
"title": "Page title",
"space": {"key": "SPACEKEY"},
"type": "page",
"body": {
"storage": {
"value": "Page body",
"representation": "storage"
}
},
"version": {
"message": "version comment",
"number": 2
}
}

 Or on the UI when saving the page

image.png

Once a version comment has been saved, it is not possible to change anymore.

Hi, 

is there a possibility to update a page with REST to generate a new version while keeping the whole page content.

I’ve noticed that no new version is created unless the title or content changes.
I want to create a new page version triggered by the click on a checkbox, but keep the complete content. I just want to set a version message.

On the UI, when saving the page, this is possible.

Cheers,
Fabian

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

264 views 2 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you