I am using the confluence api to create a confluence page from html embedded in json (see example code at bottom)
I can create confluence pages successfully using simple html (e.g. <p>Hello, World</p>) but as soon as I venture to more complex html, I receive internal server errors (http 500 response)
What version of html does Confluence support? It's obviously not HTML5...it doesn't even support the <!DOCTYPE> tag)!
data = f'{{"type":"page", "title":"{TITLE}", "space":{{"key":"{SPACE}"}}, "body":{{"storage":{{"value":"{BODY}", "representation":"storage"}}}}}}}}'
headers = {'Content-Type': 'application/json'}
res = requests.post(URL, auth=(USERNAME, PASSWORD), data=data, headers=headers)