I've gotten this to work in the past but for some reason i'm no longer able to update our wiki via API, i'm continually getting a 415 response.
I'm using python3 and I've tried via requests package and the atlassian Confluence methods. Both return 415 regardless if I supply content-type in my header or not. Actually using '''from atlassian import Confluence''' I'm not even sure how to supply content-type, the docs are not that good and I'm assuming it defaults to application/json.
The GET calls return with no problem, it's just the PUT method that is giving me issues.
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 415 Client Error: for url: https://confluence.servers.xxxxx/rest/api/content/123455667