Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,022
Community Members
 
Community Events
168
Community Groups

'Error loading the extension!' with a page which has HTML macro created using confluence REST API

Edited

Screenshot from 2022-08-08 20-02-24.png

Trying to create an HTML page using Confluence REST API 

curl -X POST \
https://whatfix.atlassian.net/wiki/rest/api/content \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"type": "page",
"title": "My Test Page 15",
"version":{{"number":"1" }},
"body": {
"storage": {
"value": "<ac:structured-macro ac:name=\"html\" ac:schema-version=\"1\" ac:macro-id=\"74c5d460-d9c1-4259-9489-5ca2cea8314c\"><ac:plain-text-body><![CDATA[<div><ul><li><a href=\"#Domain1\">Domain1</a></li><li><a href=\"#Domain2\">Domain2</a></li><li><a href=\"#Domain3\">Domain3</a></li><li><a href=\"#Domain4\">Domain4</a></li><li><a href=\"#Domain5\">Domain5</a></li></ul></div><br/><div><table> <colgroup><col/><col/></colgroup><tr><th>Domain</th><th>System Count</th></tr><tr><td>Domain1</td><td>653</td></tr><tr><td>Domain2</td><td>2</td></tr><tr><td>Domain3</td><td>527</td></tr><tr><td>Domain4</td><td>2</td></tr><tr><td>Domain5</td><td>2</td></tr></table></div><br/>]]></ac:plain-text-body></ac:structured-macro>",
"representation": "storage"
}
}
}'

The error from dev console is 
Screenshot from 2022-08-08 20-09-12.png

I could insert an html manually by using HTML Macro but not through the REST API.

Thanks in advance

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS

Atlassian Community Events