kschork
I'm new here

Export project and import project via API

Jump to solution

We are thinking about the possibility to create/import a FirstSpirit project based on an existing export with a script.

Doing it from an external web application would be too much to ask I guess.

A quick look into the Access API did not raise my hopes that this is possible

even within the FirstSpirit context as I couldn't find any classes or methods related to this kind of functionality.

So does anyone know if this is possible somehow?

0 Kudos
1 Solution

Accepted Solutions
felix_reinhold
Returning Responder

HI Kevin,

importing Projects is possible.

For example you can use the AdminService to get the ProjectStorage - it contians a method

uploadExportFile(String fileName, InputStream fileData)

to upload a zip to the server and receive an ExportFile Object and a method

startImport(ImportParameters importParameters)

to start the import.

To do this from an external web-app the access-api has to be part of your license (license.ACCESS_API=1)

Best regards

Felix

View solution in original post

0 Kudos
2 Replies
felix_reinhold
Returning Responder

HI Kevin,

importing Projects is possible.

For example you can use the AdminService to get the ProjectStorage - it contians a method

uploadExportFile(String fileName, InputStream fileData)

to upload a zip to the server and receive an ExportFile Object and a method

startImport(ImportParameters importParameters)

to start the import.

To do this from an external web-app the access-api has to be part of your license (license.ACCESS_API=1)

Best regards

Felix

0 Kudos
kschork
I'm new here

Ah I missed that.

Thank you very much Felix.

0 Kudos