Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unknown Tag <ac:structured-macro ac:name=/ while update the page in confluence using REST API

Bhakya March 6, 2020

Hello,

Getting Internal Server Error while update the page in confluence.

This is because of this tag <ac:structured-macro ac:name=XX> in  update body .storage.value input.

When i tried to update the confluence page through HTML file,its get updated successfully at first time.When i did on second time it is throwing error.

{"id":"12345","type":"page","title":"XXX","space":{"key":"XX"},"body":{"storage":{"value":"<p><br /></p><p> <ac:structured-macro ac:name=\<p>The content to append</p>","representation":"storage"}},"version":{"number":XX}}

1 answer

0 votes
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
March 7, 2020

The body.storage.value needs to be valid XML in order to save correctly.

Rather than 

<ac:structured-macro ac:name=XX>...</ac:structured-macro>

wrap parameters in double quotes like so

<ac:structured-macro ac:name="XX">...</ac:structured-macro>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events