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 curl as follows
curl -X POST "http://HOST:PORT/codeinsight/api/importer/importProjectData?projectId=PROJECT_ID&checkInventory=false&checkReviewed=false&createEmptyInventory=false&overwriteInventoryNotes=true" -H "accept: application/json" -H "Authorization: Bearer JWT_TOKEN" -H "content-type: application/octet-stream" --data-binary "@path/filename.zip"Since this is deprecated, you can find the new api under projects api i.e., /projects/{projectId}/import
Security
bearerAuth
- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/importer/importProjectData
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/importer/importProjectData
curl -i -X POST \
'https://codeinsightapi.redocly.app/_mock/swagger/importer/importProjectData?projectId=1&checkInventory=string&checkReviewed=string&createEmptyInventory=string&overwriteInventoryNotes=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/octet-stream'