Open cbertran opened 1 year ago
@cbertran that's right, I will wrap up the cloud version as rest/api/v2
@cbertran that's right, I will wrap up the cloud version as rest/api/v2 Hi there . Is there any approx estimation on this? Thanks
@gagbaghdas I did not started yet, I little bit busy
@gagbaghdas I did not started yet, I little bit busy
Thanks!
@sreway please help once you have some time
@sreway please help once you have some time
Sure
Any updates on this?
We start working. Currently, new API version will be released as beta. We will providing new methods as soon as possible.
@SLRover Any further updates? Will moving the Confluence python SDK to your V2 API introduce any breaking changes to the existing methods?
Would also love to see this - creating confluence pages for example is literally broken. I guess other methods based on the content endpoints too.
Right now Confluence Cloud answers with a rude requests.exceptions.HTTPError: com.atlassian.confluence.api.service.exceptions.PermissionException: Could not create content with type page
after confluence.create_page()
For what it's worth - 2 hacky workarounds. Works for me but USE AT YOUR OWN RISK
# This code sample uses the 'requests' library:
# http://docs.python-requests.org
import requests
from requests.auth import HTTPBasicAuth
import json
url = "https://{your-domain}/wiki/api/v2/pages"
auth = HTTPBasicAuth("email@example.com", "
headers = { "Accept": "application/json", "Content-Type": "application/json" }
payload = json.dumps( {
"spaceId": "
response = requests.request( "POST", url, data=payload, headers=headers, auth=auth )
print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": ")))
2. Change the editor version manually for existing pages (had some minor issues with some widgets being full width eg tables)
import requests from requests.auth import HTTPBasicAuth import json
page_id =
auth = HTTPBasicAuth(
headers = { "Accept": "application/json" }
payload = json.dumps( { "key": "editor", "value": "v2", } )
response2 = requests.request( "post", url, data=payload, headers=headers, auth=auth )
print(json.dumps(json.loads(response2.text), sort_keys=True, indent=4, separators=(",", ": ")))
According to Change-Log many functions of Confluence rest api v1 will stop working, and if I'm not mistaken, these libraries use api-rest version 1 (/wiki/rest/api/ instead of /wiki/rest/api/v2)