Forums

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

Retrieving content properties for all pages within a space

Jason Wright
Contributor
April 18, 2018

Hi,

I'm using the Confluence Cloud REST API and would like to retrieve all pages within a space and expand the content properties for each page. (I'm hoping to avoid having to issue an HTTP request for each individual page to get the content properties.)

It seems like this should be possible using

/rest/api/space/{spaceKey}/content?expand=metadata.properties

however, in the body of the response, metadata.properties only lists the keys and not the values. all the values are an empty string (for pages where I am 100% sure those content properties have previously been set). For example:

{ _expandable: { dccc_byline: '', dccc_signatures: '', dccc_reviewers: '' }

Can anyone help figure out why this might be the case?

1 answer

0 votes
Jason Wright
Contributor
April 18, 2018

so, of course I figured how to do this 30 minutes after posting. You have to specify the key of the content property in the API call. For example:

/rest/api/space/{spaceKey}/content?expand=metadata.properties.dccc_byline

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events