# Import Project Data Imports project data for a given projectId. Only Project Owner and Analyst can Import Project Data into a private project. Try it out is not available for this API. This API can be tested using conventional REST API clients such as postman or cURL When calling this API from a REST client, you need to run either of the curl commands. Save the required attributes in a json or a text file for project import and provide that file in the command. If you are using text file, don't give .txt extension. curl -H "Authorization:Bearer %jwt%" -F importFile=@"fileToImport.zip" -F projectImportModel=@"JsonFile.json Or textFile;type=application/json" http://localhost:8888/codeinsight/api/projects/%projectId%/import Or else, instead of providing file, you can directly define the attributes for projectImportModel inside curly braces. Provide 'FileMatchingCriteria' either of the below values: COMPLETE_FILEPATH|PARTIAL_FILEPATH|FILENAME|MD5|MD5_AND_FILENAME|MD5_AND_COMPLETE_FILEPATH|MD5_AND_PARTIAL_FILEPATH Endpoint: POST /projects/{projectId}/import Version: v1 Security: bearerAuth ## Path parameters: - `projectId` (integer, required) ## Request fields (multipart/form-data): - `File to import` (object) - `Project Import Model` (object) - `Project Import Model.createEmptyInventory` (boolean) createEmptyInventory - `Project Import Model.overwriteInventoryNotes` (boolean) overwriteInventoryNotes Example: true - `Project Import Model.addFilesToInventory` (boolean, required) addFilesToInventory Example: true - `Project Import Model.inventoryFileMatchingCriteria` (string) inventoryFileMatchingCriteria Example: "COMPLETE_FILEPATH" - `Project Import Model.inventoryDirectoryDepth` (integer) inventoryDirectoryDepth - `Project Import Model.markFilesAsReviewed` (boolean, required) markFilesAsReviewed Example: true - `Project Import Model.reviewFileMatchingCriteria` (string) reviewFileMatchingCriteria Example: "MD5_AND_COMPLETE_FILEPATH" - `Project Import Model.reviewDirectoryDepth` (integer) reviewDirectoryDepth - `Project Import Model.resetInventoryUsage` (boolean) resetInventoryUsage Example: true ## Response 200 fields ## Response 400 fields ## Response 401 fields ## Response 404 fields ## Response 500 fields