I want to post .html file to confluence page that I have created earlier via REST API. I have tried this using this PUT command with the following URL:
PUT https://<confluence page>/rest/api/content/<pageID>?expand=body.storage
This works well when I am posting normal string content to the page, but does not work when I tried to post .html file to the page.
How can I post .html file to confluence page? Which API endpoint should I use?