Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,273
Community Members
 
Community Events
168
Community Groups

How can I export spaces using REST API for confluence?

I am trying to export confluence spaces in pdf format but in bulk.

So, I need the REST API for doing these exports.

Can someone help?

 

Thanks,

Saurabh

1 answer

0 votes

The bad news:

You can't using the REST API.

The good news:

You can using XML-RPC, which is like old REST API.

See Remote Confluence method under Spaces -> Retrieval:

String exportSpace(String token, String spaceKey, String exportType) - exports a space and returns a String holding the URL for the download. The export type argument indicates whether or not to export in XML or HTML format - use "TYPE_XML" or "TYPE_HTML" respectively. (Note: In Confluence 3.0, the remote API specification for PDF exports changed. You can no longer use this 'exportSpace' method to export a space to PDF. Please refer to Remote API Specification for PDF Export for current remote API details on this feature.)

Oh, and disregard the token parameter. Pretend it doesn't exist.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events