Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Passing a beautifulsoup object to json in a requests.put() method for updating confluence in python

karthick gopalasubramanian
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 10, 2019

I'm using REST API to update an existing confluence page. I try to parse the page in a bs4 object and after manipulating the content, I'm trying to write the same using requests.put() method in python. But this returns a bad request. Any lights on this?

{"statusCode":400,"data":{"authorized":false,"valid":true,"allowedInReadOnlyMode":true,"errors":[],"successful":false},"message":"Error parsing xhtml: Unexpected character '&' (code 38) in start tag Expected a quote\n at [row,col {unknown-source}]: [1,2033]","reason":"Bad Request"}

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events