Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

REST /api/content/{pageid}?expand=body.export_view returns images, but hidden when not logged in. Edited

update; found it myself; 

It's answered here: https://community.atlassian.com/t5/Confluence-questions/View-Confluence-Page-Images-via-API/qaq-p/1051944#M176360

This is extra work, I wonder why, probably due to attachments new permissions/rights?

Anyway, thanks folks 😜

 

------------

 

Hi,

We use Confluence Cloud, and I'm retrieving one of the pages via REST API and a TOKEN.

I retrieve the page with a GET

https://siennsoft.atlassian.net/wiki/rest/api/content/1653407745?expand=body.export_view

Up until recently it worked, (don't know when it stopped because I'm always logged in) but now we get the content of the body with image-urls looking like this:

https://siennsoft.atlassian.net/wiki/download/attachments/1653407745/afbeelding-20210120-090530.png?api=v2

instead of this, which we had before (a few months ago?):

https://api.media.atlassian.com/file/c9cd893a-66d4-41a7-9677-af47e0ce13d3/binary?token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI0Zjk1NGMxZi03MWJkLTQ3MmYtYTEyMC00MDA2MzVkYzUzYjAiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpmaWxlOmM5Y2Q4OTNhLTY2ZDQtNDFhNy05Njc3LWFmNDdlMGNlMTNkMyI6WyJyZWFkIl19LCJleHAiOjE2MjMzOTU0OTYsIm5iZiI6MTYyMzMxMjUxNn0.0e_Rxyt610x9VjoXlnANtl9Vd7qDQ0UOkx-hUuf3Uoc&client=4f954c1f-71bd-472f-a120-400635dc53b0&name=afbeelding-20210120-090530.png

So when you are not logged in, you don't see the image anymore, but you do see all the text. There are a lot of images on that page, in between blocks of text, so it's really needed to see them.

What can we do to have the confluence API return the image-urls like it did before again?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence

Miss the Confluence demos at Team 21? Watch them here!

Phew, Atlassian Team 2021 blew by. With dozens of demos and a handful of keynotes, you may have missed some of the awesome Confluence Cloud sessions. Don't' worry, you can watch them all here or on Y...

131 views 2 5
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