Use the enhanced '/projects' api.
Security
bearerAuth
To create a project the projectName field is required and other fields are optional. If the optional fields are left blank, the 'Project Default' values are applied for them.
projectType
Enum:"INVENTORY_ONLY""STANDARD"
Example:"INVENTORY_ONLY | default: STANDARD"
scanProfileName
Enum:"Basic Scan Profile (Without CL)""Standard Scan Profile""Comprehensive Scan Profile"
Example:"Basic Scan - Without CL | default: Standard Scan Profile"
- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/project/createProject
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/project/createProject
curl -i -X POST \
https://codeinsightapi.redocly.app/_mock/swagger/project/createProject \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"projectName": "eportal",
"projectType": "INVENTORY_ONLY | default: STANDARD",
"description": "description",
"projectFolderName": "eportal-v1",
"policyProfileName": "Default License Policy Profile",
"scanProfileName": "Basic Scan - Without CL | default: Standard Scan Profile",
"ownerLogin": "admin",
"risk": "HIGH | default: MEDIUM",
"privateProject": "false",
"eccn": "5D002",
"autoPublish": "true",
"markAssociatedFilesAsReviewed": "true"
}'