Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Page Properties Access Via API

charlie_gavins June 25, 2020

I would love to be able to access the page properties macro for an individual page, via REST API. It seems it MAY be possible using masterdetail: I get the following JSON from this GET request:

 

https://www.example.org/rest/masterdetail/1.0/detailssummary/lines?cql=id={myID}&spaceKey={myPUB}

 

{ "currentPage": 0, 
"totalPages": 1,
"renderedHeadings":
[ "Audio Code(s)",
"Event Date",
"<p xmlns=\"http://www.w3.org/1999/xhtml\">Event Location</p>",
"Event Name",
"Notes",
"Proof-read By",
"Proofed By",
"Transcribed By",
"Transcript Status" ],
"detailLines": [],
"asyncRenderSafe": false}

 

I have seen someone with same issue here, unanswered in SO:

 

https://stackoverflow.com/questions/62327802/get-page-properties-using-confluence-rest-api#

 

And some discussion here:

 

https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-retrieve-metadata-from-Page-Properties-using-REST-API/qaq-p/468443

 

https://community.atlassian.com/t5/Confluence-questions/Is-there-a-rest-api-to-post-the-page-properties/qaq-p/814823#U1416216

 

I would love to update page properties with a new field, and then batch update all pages with this. It's perhaps possible but there is no documentation on the 'masterdetail' section of the API.

 

Anyone with any thoughts on a workaround would be much appreciated!

 

Kind regards,

 

Charlie. 

1 answer

0 votes
Jael Busuttil May 5, 2021

Hi @charlie_gavins 

Any luck with accessing page properties macro via API? 

I am trying to create this macro via API, and I cant seem to find a POST url for page properties macro. 

 

Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events