I’M trying to create a confluence page using the REST-API. Unfortunally when I try to create a page, I always get an 400 Response. I’m using the REST-API Wrapper on this page: https://github.com/atlassian-api/atlassian-python-api
The code I wrote is the example on the page and looks as follows:
from atlassian import Confluence confluence = Confluence( url='http://localhost:8090', username='admin', password='admin') status = confluence.create_page( space='DEMO', title='This is the title', body='This is the body. You can use <strong>HTML tags</strong>!') print(status)
In this code I inserted my credentials. The weird part is, that if I use the JIRA example, it works perfectly but for confluence it doesn’t.
Does somebody know how to get rid of the 400 Response?