Confluence Space Export REST API

Suresh Venkat June 23, 2021

2 answers

0 votes
Hyrum Steffensen {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 23, 2021

Hello Suresh,

Take a look at this Atlassian documentation on pagination. In particular, the section on "GET the next page of results". If I am reading the documentation correctly, you would get the next page of results like this:

https://confluece/rest/api/content?spacekey=spacekey&expand=body.storage,metadata.labels&start=99999&limit=99999

This may or may not be the solution, but the concept of pagination when using Atlassian REST API is a pretty good idea to keep in mind.

If you would like to automate the process, please consider Bob Swift's Confluence Command Line Interface - CLI. This documentation will show you how to export multiple Spaces via command line.

Regards,

Hyrum

Please note that I am a product engineer for Power Scripts and that I work for Anova Apps (Appfire).

0 votes
Niranjan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 23, 2021

@Suresh Venkat - Currently there are no REST API methods in Confluence for Space export or import.

 Open Feature request - https://jira.atlassian.com/browse/CONFSERVER-40457

https://confluence.atlassian.com/confkb/confluence-space-import-via-scripting-tools-1041075950.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events