Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Add Page Properties macro via API

Hello,

Is there a way to add Page Properties macro via API?

I was able to add it but overwrite the whole page content.

I used such request:

 {"id""123123","type""page","title""pagetitle","status""current","version": {        "number"3},"body": {   "storage": {            "value""<ac:structured-macro ac:name=\"details\" ac:schema-version=\"1\" data-layout=\"default\"><ac:rich-text-body><table data-layout=\"default\"><colgroup><col style=\"width: 340.0px;\" /><col style=\"width: 340.0px;\" /></colgroup><tbody><tr><td><p>Page Owner</p></td><td><p><ac:link><ri:user ri:username=\"userKeyHere\" /></ac:link> </p></td></tr><tr><td><p>Last Review Date</p></td><td><p><time datetime=\"2021-01-30\" /> </p></td></tr></tbody></table></ac:rich-text-body></ac:structured-macro>",            "representation""storage"   }}

 

Is it posssible to add it without overwriting whole page content?

 

Thanks in advance

1 answer

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

24,328 views 17 100
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you