Skip to main content

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.

  1. Navigate to the location where the REST API is installed.

    By default it is installed here: C:\Program Files (x86)\Incentives\RestAPI

  2. Open the RESTAPI.appSettings.config file.

  3. 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.

  4. By default, saved imports are saved to a single folder. To change this setting to allow multiple saved import folders, change the IsSingleImportDirectory value to FALSE.

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:

  1. Navigate to the location where the REST API is installed.

    By default it is installed here: C:\Program Files (x86)\Incentives\RestAPI

  2. Open the RESTAPI.appSettings.config file.

  3. Change the value of DisableDataFolderOnPrem from false to true:

    <add key="DisableDataFolderOnPrem" value="true"/>