Forums

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

Add Page Properties macro via API

Pawel Marciniak May 27, 2021

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

0 votes
Alex Koxaras -Relational-
Community Champion
September 21, 2021

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events