Content archive

Download component contents as a ZIP archive

The content archive service allows downloading the contents of documents, folders or virtual folders as a ZIP archive. The operation can be performed synchronously or asynchronously depending on the volume of data.

Archive document contents


# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN>      authentication token
# <IDS>        document identifiers (comma-separated)
curl -X GET "<CORE_HOST>/rest/documents/<IDS>/content/archive/" \
  -H "token: <TOKEN>"

The following query parameters can be used:

Name Description Default
isAsync Run as an asynchronous job true
format Archive format application/zip
includeMetaData Include component metadata in the archive false
recursive Include children contents recursively false
flatten Flatten the directory structure true
name Name of the output archive file auto-generated

Archive folder contents


# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN>      authentication token
# <ID>         folder identifier
curl -X GET "<CORE_HOST>/rest/folders/<ID>/content/archive/" \
  -H "token: <TOKEN>"

Archive virtual folder contents


# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN>      authentication token
# <ID>         virtual folder identifier
curl -X GET "<CORE_HOST>/rest/virtualFolders/<ID>/content/archive/" \
  -H "token: <TOKEN>"

Asynchronous job management

When using isAsync=true, the archive is generated in the background. The following endpoints allow tracking the job progress.

Check job status


# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN>      authentication token
# <IDS>        component identifiers used for the archive request
curl -X GET "<CORE_HOST>/rest/documents/<IDS>/content/archive/job/status/" \
  -H "token: <TOKEN>"

Get job result


# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN>      authentication token
# <IDS>        component identifiers used for the archive request
curl -X GET "<CORE_HOST>/rest/documents/<IDS>/content/archive/job/" \
  -H "token: <TOKEN>"

Get job error


# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN>      authentication token
# <IDS>        component identifiers used for the archive request
curl -X GET "<CORE_HOST>/rest/documents/<IDS>/content/archive/job/error/" \
  -H "token: <TOKEN>"