Creates a project for the given input, updates project custom field values and returns projectId with success message.
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. Note: For 'folderName', passing entire folder path like 'folder1/folder2' is not supported.
- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/projects
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/projects
curl -i -X POST \
https://codeinsightapi.redocly.app/_mock/swagger/projects \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "eportal",
"description": "description",
"folderName": "Projects",
"policyProfileName": "Default License Policy Profile",
"scanProfileName": "Basic Scan Profile (Without CL)",
"autoPublish": true,
"markAssociatedFilesAsReviewed": true,
"owner": "admin",
"risk": "HIGH | default: MEDIUM",
"privateProject": false,
"scanServerAlias": "null",
"deleteEmptyInventory": false,
"doNotPublishInventoryUnknownLicense": true,
"folderId": 1,
"expandJarArchives": false,
"eccn": "5D002",
"customFields": [
{
"id": 1,
"value": "Value for custom field"
}
]
}'