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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.