Import - Export

Export templates store into zip file and later recover the state or import to a different instance


Migrating templates

This extension can be used to move templates to different servers as well to different servers using different template stores. This means you can for example copy templates from default file system store to mssql store or postgres store.


Export into zip stream

POST: /api/export
  selection: ["id1", "id2" ...]

Import zip stream

POST: /api/import
BODY: /* multipart */

Important - make sure the multipart key for uploaded zip is

You can find how to send multiplart through postmant here.


The export/import can be called also using jsreport cli.

jsreport export
jsreport import

This can be done also remotely using --serverUrl switch. This is handy for deployment automation.

jsreport export
jsreport import

The cli export commands support also authentication, importing and exporting specific folder or specific entities, validation and also full import. See details in the cli help.

jsreport help export
jsreport help import