The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I'm trying to figure out how to get a list of all the versions of an attachment using the rest api. In particular, the version number, date and time of each version. I've tried variations on the rest api url, but haven't had much luck. I'm probably making a simple mistake.
Things I've tried:
rest/api/content/<Attachment ID>/history
rest/api/content/<Page ID with attachments>/descendant?expand=attachment
rest/api/content/<Page ID with attachments>/child/attachment?expand=container,operations,children,restrictions,history,version,descendants,space
Thank you,
R
thats not working, also i need to list old versions to download and migrate to other platform. I tried all i saw
Hello R,
From reviewing your notes and the endpoints you’ve attempted, you should be able to get what you need from the last endpoint you listed. This endpoint should be able to provide what you’re looking for with the expands:
GET /rest/api/content/{id}/child/attachment
Example of what to use: http://example.com/confluence/rest/api/content/1234/child/attachment?filename=myfile.txt&expand=version
This should give your information in a format which will include version and when (this is the date).
Please let us know if this example is helpful in getting your attachment information.
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
but if the document has n versions for example 9 versions .. how can I list when each version was last updated.....or created....
I found
https://xxxxxxxxx.atlassian.net/wiki/rest/api/content/xxxxxxxxxx/child/attachment?expand=history.lastUpdated,history.previousVersion&version=1
but just list the previous version of the current one
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.