Need the JSON body for a REST API call to confluence to insert page property macro. I have used the following JSON but getting an "unknown macro" error in confluence.
{
"type": "page",
"title": "REST API PAGE 0426",
"space": {
"key": "TSFM"
},
"body": {
"storage": {
"value": "<p> \n <ac:structured-macro ac:name='pageproperties' /> \n This page has been created through a REST API </p>",
"representation": "storage"
}
}
}
Hi @Soham Das
Welcome to the Atlassian Community.
The XHTML code for the page properties macro is as below.
<ac:structured-macro ac:name="details" ac:schema-version="1" ac:macro-id="c26310b8-2eb4-4ab2-998f-05eb8bb1b3a5"><ac:rich-text-body> <p class="auto-cursor-target">Your macro content goes here</p></ac:rich-text-body></ac:structured-macro>
Let me know if that works with your REST API call.
Kind regards,
Thiago Masutti
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.