The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to see if a page has content?

Emma Barrett
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 22, 2017

I am writing a python script to get information about all the pages in my space in order to see what pages are no longer used and which ones I can delete. Is there an easy way in the REST API to see whether or not a page has content? I am not interested in getting the content itself, just looking at if there is something in the pages or not.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 29, 2017

Unfortunately there's no check for this in the API. The only way I am aware of is to actually get the content and test if it is empty or not. It may seem wasteful, but Confluence can handle the traffic. You may not want to run it too often though.

TAGS
AUG Leaders

Atlassian Community Events