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
Are you using on your request PUT or POST? Did you try this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.