Hi,
I have a python script that uses the confluence REST API to download a page, make changes to the HTML and re-upload the page.
My current script works fine if I replace the html with html that I create (that is valid HTML). The code programmatically updates the version and put's it to the server.
But now I want to edit the page programmatically. I download the html, patch a new row into an HTML table and want to re-upload -- this fails with a 400 error. I also tried just round-tripping -- downloading the page html, uploading it -- this fails as well. Downloading and uploading just a <p>Hello World</p> works great -- it replaces the page content as expected.
I am looking for guidance on how to make this work. I notice a lot of <link> tags (where an @user reference is) - and tried removing those before re-upload but that did not work either.
Best,
Friedrich Brunzema