Skip to content

Create Project
deprecated

Request

Use the enhanced '/projects' api.

Security
bearerAuth
Bodyapplication/jsonrequired

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.

projectNamestringrequired

projectName

Example:"eportal"
projectTypestring

projectType

Enum:"INVENTORY_ONLY""STANDARD"
Example:"INVENTORY_ONLY | default: STANDARD"
descriptionstring

description

Example:"description"
projectFolderNamestring

projectFolderName

Example:"eportal-v1"
policyProfileNamestring

policyProfileName

Example:"Default License Policy Profile"
scanProfileNamestring

scanProfileName

Enum:"Basic Scan Profile (Without CL)""Standard Scan Profile""Comprehensive Scan Profile"
Example:"Basic Scan - Without CL | default: Standard Scan Profile"
ownerLoginstring

ownerLogin

Example:"admin"
riskstring

risk

Enum:"HIGH""MEDIUM""LOW"
Example:"HIGH | default: MEDIUM"
privateProjectstring

privateProject

Example:"false"
eccnstring

eccn

Example:"5D002"
autoPublishstring

autoPublish

Example:"true"
markAssociatedFilesAsReviewedstring

markAssociatedFilesAsReviewed

Example:"true"
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"
  }'

Responses

OK

Bodyapplication/json
integer, (int32)
Response
0