App: Import app
This API is extremely reliable and will not be broken unless absolutely necessary.
Method
POST
Path
/qrs/app/import?name={name}&keepdata={keepdata}&excludeConnections={excludeConnections}
Description
Import the specified app and store it as {name}.
The app must be in the import folder for the calling user. To find the import folder, send the following request as the appropriate user:
GET /qrs/app/importfolder
Body
application/json
The file name of the app to import, in quotes (for example, "sales_data.qvf").
Return value
{ "id": "43fbdabb-e378-43ca-b853-39ce562bf07a", "createdDate": "2019-01-04T19:40:06.191Z", "modifiedDate": "2019-01-04T19:40:10.356Z", "modifiedByUserName": "INTERNAL\\sa_repository", "customProperties": [], "owner": { "id": "eca5d404-3490-4c4a-ae2a-fc435a1c05ba", "userId": "sa_repository", "userDirectory": "INTERNAL", "name": "sa_repository", "privileges": null }, "name": "XXX.qvf", "appId": "", "sourceAppId": "00000000-0000-0000-0000-000000000000", "targetAppId": "00000000-0000-0000-0000-000000000000", "publishTime": "1753-01-01T00:00:00.000Z", "published": false, "tags": [], "description": "", "stream": null, "fileSize": 1505637, "lastReloadTime": "2014-06-27T15:51:29.000Z", "thumbnail": "/appcontent/43fbdabb-e378-43ca-b853-39ce562bf07a/executive-dashboard.jpg", "savedInProductVersion": "12.290.0", "migrationHash": "98d482c3f964dccf69cbfb9a00e0c048ea6eb221", "dynamicColor": "hsla(205,18%,43%,1)", "availabilityStatus": 0, "privileges": null, "schemaPath": "App" }
Optional parameters
- {keepdata}: If set to false and the imported .qvf file contains app data, the data will be silently discarded. The default value is true.
- {excludeConnections}: If set to true and the imported .qvf file contains any data connections, they will not be imported to the system. The default value is false.