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

 

1 answer

1 accepted

This widget could not be displayed.
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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

460 views 6 6
Join discussion

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