Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Is there any way to update the comment of an old version of the attachment of a confluence page

I want to find a way to update the comment of a old version attachment of a confluence page. I've tried the rest api /rest/api/content/{id}/child/attachment/{attachmentId}, but it seems that this rest api can only update the comment of the latest version of the attachment of a confluence page. If I tried to update old version one, the confluence log will throw an exception: 

java.lang.IllegalArgumentException: The attachment to be moved must be the latest version.
at com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao.moveAttachment(
at com.atlassian.confluence.pages.attachments.CachingAttachmentDao.moveAttachment(
at com.atlassian.confluence.pages.DefaultAttachmentManager.moveAttachment(
at com.atlassian.confluence.pages.DefaultAttachmentManager.moveAttachment(
at com.atlassian.confluence.pages.DelegatorAttachmentManager.moveAttachment(
at com.atlassian.confluence.pages.CachingAttachmentManager.moveAttachment(

1 answer

Hi, Were you able to find a solution for this?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

953 views 15 27
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you