Forums

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

Custom Export to HTML via scripting

Faizul Hoda October 9, 2020

Hi,

We are using the following to successfully export to HTML from a Confluence Space:

USRNAME=username
USRPWD=password
CONFBASEURL=http://127.0.0.1:8090/confluenceSPACE_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_HTML"], "id": 7 }' \
    ${CONFBASEURL}'/rpc/json-rpc/confluenceservice-v2?os_authType=basic'

However I need to exclude comments and some page, which I can manually do as under by choosing "Custom Export":

image.png

 

How can I provided these options to the script above? Thanks for your insights.

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events