Open ldubost opened 3 years ago
It seems there is a deprecated API (but that seems still there) to run an export. It seems it's still there on Confluence Cloud but does not support tokens, so authentication could be an issue
https://jira.atlassian.com/browse/CONFSERVER-40457
USRNAME=admin USRPWD=password CONFBASEURL=http://127.0.0.1:8090/confluence SPACE_KEY=SPACEKEY
curl -s \ --user $USRNAME:$USRPWD \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -X POST \ -d '{ "jsonrpc" : "2.0", "method" : "exportSpace", "params" : ["'${SPACE_KEY}'", "TYPE_XML"], "id": 7 }' \ ${CONFBASEURL}'/rpc/json-rpc/confluenceservice-v2?os_authType=basic'
It's unclear what it returns in order to get the zip file..
It seems there is a deprecated API (but that seems still there) to run an export. It seems it's still there on Confluence Cloud but does not support tokens, so authentication could be an issue
https://jira.atlassian.com/browse/CONFSERVER-40457
USRNAME=admin USRPWD=password CONFBASEURL=http://127.0.0.1:8090/confluence SPACE_KEY=SPACEKEY
curl -s \ --user $USRNAME:$USRPWD \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -X POST \ -d '{ "jsonrpc" : "2.0", "method" : "exportSpace", "params" : ["'${SPACE_KEY}'", "TYPE_XML"], "id": 7 }' \ ${CONFBASEURL}'/rpc/json-rpc/confluenceservice-v2?os_authType=basic'
It's unclear what it returns in order to get the zip file..