Retrieve the header image of a blog post with the V2 Rest API

Martijn Muskens
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 3, 2024

Hi community,

 

I was wondering on how I can efficiently get the header image of a blogpost. I know I can use the 'https://{your-domain}/wiki/api/v2/blogposts/{id}/attachments' call to get all the attachments of a blogposts, including the header image if it exists. However, it will also give me all the other images that have been used within the blogpost. The issue is, I'm not sure on how I can distinguish the header image out of all the images I retrieve out of that call. I don't see a way to add an additional query to the call, or distinguish it based on the result I get back.

 

Any help would be appreciated.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events