- The import process overwrites existing configurations for the modules present in the file.
- If a specific module configuration is not included in the uploaded file, the current configuration for that module remains unchanged.
- Import is executed as an asynchronous job.
Import Workflow
- Upload the configuration file using the Upload File API.
- Initiate the import process using the uploaded file.
- Track the import status using the Job Status API.
Step 1: Upload Config File
Upload the app configuration file in JSON format. Guidelines:- Upload the file as
multipart/form-data - Set
fileContext=findly - Set
fileExtension=json
Sample Request
Sample Response
Step 2: Initiate App Import
Creates an asynchronous import job to apply configurations from the uploaded file to the specified Search AI app.- Uses the
fileIdreturned by the Upload File API. - Overwrites existing configurations for the specified modules. Other modules remain unchanged.
- Returns a
jobIdto track import progress.
| Method | POST |
| Endpoint | {HOST_NAME}/api/public/bot/{botId}/search/app-import |
| Content-Type | application/json |
| Authorization | auth: {{JWT}} |
| API Scope | Search AI Import |
Query Parameters
| Parameter | Description | Mandatory |
|---|---|---|
| Bot ID | Your application ID. | Yes |
Request Parameters
| Parameter | Description | Mandatory |
|---|---|---|
fileId | Unique identifier of the uploaded file. | Yes |
features | Array of features to import. Pass an empty array [] to import all features in the file. If omitted, all modules in the file are imported. Available values: chunkStages, advancedConfig, businessRules, searchResultsConfig, answerConfig, answerRetrievals. | No |