I am trying to programmatically update a confluence using the Python API. It is working the get page requests, I am able to retrieve contents from the page using page ID. The problem is for update requests, where it is giving "requests.exceptions.HTTPError: 415 Client Error: for url: https://confluence.<domain_name>.com/rest/api/content/".
Here is the code that I am using :
What I've tried :
Am I missing something obvious? Any help would be highly appreciated.
Hi @Debopam Seal ,
welcome to the Atlassian community!
415 means unsupported mediatype so please check if you defined 'Content-Type: application/json' in your call.
Hope this helps,
Fabio
Hi Fabio. I am using the Python API, which sets the headers itself while sending away the request I guess. From what I understood, it does set the content-type to application/json, so that should not be the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.