Configuring saved import settings for the REST API
After you configure database access for the REST API, you must configure the saved import file settings manually before any imports can be saved by the Incentives REST API.
Navigate to the location where the REST API is installed.
By default it is installed here:
C:\Program Files (x86)\Incentives\RestAPIOpen the
RESTAPI.appSettings.configfile.In the
Saved Import File Settingssection, configure the following parameters:Parameter
Description
ImportFileDirectoryThis is the location of the network or shared drive where the REST API saves the import files.
ImportFileUserNameThe user name with access to the network or shared drive where the import files are saved.
ImportFileDomainNameThe domain name of network or shared drive where the import files are saved.
ImportFilePasswordThe password associated with the user name with access to the network or shared drive where the import files are saved.
By default, saved imports are saved to a single folder. To change this setting to allow multiple saved import folders, change the
IsSingleImportDirectoryvalue toFALSE.
Removing Data folder in ImportFileDirectory
Incentives creates a Data folder in the ImportFileDirectory folder which redirects all your inbound files to store in the new Data folder. You can remove the Data folder and access your files directly from the ImportFileDirectory folder by following these steps:
Navigate to the location where the REST API is installed.
By default it is installed here:
C:\Program Files (x86)\Incentives\RestAPIOpen the
RESTAPI.appSettings.configfile.Change the value of
DisableDataFolderOnPremfrom false to true:<add key="DisableDataFolderOnPrem" value="true"/>