I am on Confluence server and I am trying to post a Dynamic HTML file onto Confluence through python script. I know this HTML works because it shows up when being posted using editor with the default HTML macro.
However, I need to automate this process therefore I am using Python Script. So far I was able to use the Python REST API library to create a page and post simple HTMLs. I got the HTML macro to work as well using this storage format: