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\RestAPI
Open the
RESTAPI.appSettings.config
file.In the
Saved Import File Settings
section, configure the following parameters:Parameter
Description
ImportFileDirectory
This is the location of the network or shared drive where the REST API saves the import files.
ImportFileUserName
The user name with access to the network or shared drive where the import files are saved.
ImportFileDomainName
The domain name of network or shared drive where the import files are saved.
ImportFilePassword
The 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
IsSingleImportDirectory
value 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\RestAPI
Open the
RESTAPI.appSettings.config
file.Change the value of
DisableDataFolderOnPrem
from false to true:<add key="DisableDataFolderOnPrem" value="true"/>