I am attempting to upload zip files to Confluence via Python, but no matter what request I send, I keep getting an error 502 response.
data = {"comment": "This is data"}
files = {'file': open('File.zip', 'rb')}
content = session.post('https://site.com/rest/api/content/2229443766/child/attachment ', data=data, files=files)
print(content.status_code)
print(content.text)
Needed to add a header:
headers = {"X-Atlassian-Token": "nocheck"}
Hi Claudio,
I have something like this: (it includes a response to your terminal)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you upload your full solution, please?
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.