Confluence API of Page Properties Macro

It's possible get the properties added in Page Properties Macro of a Page via REST API?





2 answers

1 vote
Davin Studer Community Champion Sep 18, 2014

You could, but I think you will have to parse the page and insert it that way.

Hi Sergio, you may want to check this doc to see if it's what you're trying to achieve. I've added a custom property using the example JSON and it worked:

$ curl -D- -u admin:admin -X POST --data "{\"key\":\"example-property-key\",\"value\":{\"anything\":\"goes\"},\"content\":{\"id\":\"360456\",\"type\":\"page\",\"_links\":{\"self\":\"\"},\"_expandable\":{\"body\":\"\",\"container\":\"\",\"ancestors\":\"\",\"children\":\"\",\"descendants\":\"\",\"metadata\":\"\"}},\"version\":{\"number\":2,\"minorEdit\":false},\"_links\":{\"base\":\"\",\"context\":\"\",\"self\":\"\"}}" -H "Content-Type: application/json"
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-ASEN: SEN-L3897800
Set-Cookie: JSESSIONID=CF1289EE83FD4FBD3772C34DEB65CB9D; Path=/; HttpOnly
X-Seraph-LoginReason: OK
X-Content-Type-Options: nosniff
Content-Type: application/json
Transfer-Encoding: chunked
Date: Tue, 09 Sep 2014 14:04:24 GMT



Davin Studer Community Champion Sep 18, 2014

He is referring the page properties macro, not content properties.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

375 views 20 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you