Export and Import
The page "Export and Import" of the console is at https://waypoint.invantive.eu/editor/transfers. It writes the content of a tenant as a ZIP package of JSON files and assets, and reads such a package back into the same or another tenant. Export and import need the role administrator. Programs use the same functions through the tenant API with the paths /api/v1/transfers/exports, /api/v1/transfers/checks and /api/v1/transfers/imports, with a token that has the scope settings.write.
Export
A package is exported as follows:
- Under "What", choose the whole tenant with its settings, applications, segments, experiences and ideas; one application with its experiences; or selected experiences.
- Tick "Assets, such as theme styles" and, when needed, "End users and their state".
- Choose "Export as ZIP".
- The file is listed under "Recent Exports and Imports" and is kept 30 days.
The package holds the following:
manifest.json: the format version, the tenant, the moment and the SHA-256 of every file.tenant.json, and the foldersthemes/,applications/,segments/,experiences/with their triggers, pages, steps, texts and goals,ideas/andassets/.
Import
A package is imported as follows:
- Choose a ZIP file; it is checked before anything changes.
- The check lists per kind how many objects are new, have the same code as an existing one, or are refused, with the reason.
- Choose the mode:
- "Add: only codes that do not exist yet", the default;
- "Replace: overwrite the same codes";
- "Copy: new codes with a suffix".
- Choose "Import".
An import runs in one transaction: when one object is refused, nothing is imported (itgenwpt611). The limits, frequency and other settings in tenant.json are informational and do not change the importing tenant. End users in a package are left out unless asked. An image is checked but not kept; refer to images with an https: address.
Checks
The check refuses a package, with the message code, when:
- the upload is no ZIP file (
itgenwpt600) or has nomanifest.json(itgenwpt601); - the format version is unknown to the release (
itgenwpt602); - a file name leaves its folder, has a refused extension or is listed twice (
itgenwpt603); - a file of the manifest is missing (
itgenwpt605) or differs from its SHA-256; - the package is larger than 50 MB (
itgenwpt604), holds more than 20 000 files, a file larger than 5 MB or more than 200 MB in all once unpacked; - a text holds HTML, a control character or a link that does not start with
https:or/, or a custom CSS is not allowed; - an object refers to one that is neither in the package nor in the tenant.
An export or import is kept as a record and cannot be changed or deleted (itgenwpt620). An export file that is no longer kept answers itgenwpt617.