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

3 votes
Accepted answer
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 Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,050 views 0 5
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