Hey there
I want to update a page with the REST API.
Currently, I use a GET to collect the current data of the page, then change the body and version number and try to use a PUT to update the page.
What intrigues me is that I can update the Title of the page, but nothing inside the body.
In my tests I used a curl like this:
curl -u email:api_token -X PUT -H "Content-Type: application/json" https://XXX.atlassian.net/wiki/rest/api/content/<ID>?expand=body.storage -d @Data_file
But if someone has a python solution, that would also be appreciated
I just solved my own error :D
While I updated the "represenation" to "storage", I left the body still as "view".
After changing that to "storage" as well, the page was updated successfully
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.