Skip to content

Update Project

Request

Updates a project, custom field values for the given projectId.
Here "owner" field refers to the "contact" of the project.

Security
bearerAuth
Path
projectIdinteger, (int64), >= 1required

ID of the Project

Example:1
Bodyapplication/jsonrequired

Updates a project, autoPublish is required when markAssociatedFilesAsReviewed and doNotPublishInventoryUnknownLicense is part of a request.

namestring

name

Example:"eportal"
descriptionstring

description

Example:"description"
folderNamestring

folderName

Example:"Projects"
policyProfileNamestring

policyProfileName

Example:"Default License Policy Profile"
scanProfileNamestring

scanProfileName

Example:"Basic Scan Profile (Without CL)"
autoPublishboolean

autoPublish

Example:true
markAssociatedFilesAsReviewedboolean

markAssociatedFilesAsReviewed

Example:true
ownerstring

owner

Example:"admin"
riskstringHIGH|MEDIUM|LOW

risk

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

privateProject

Example:false
deleteEmptyInventoryboolean

deleteEmptyInventory

Example:false
doNotPublishInventoryUnknownLicenseboolean

doNotPublishInventoryUnknownLicense

Example:true
folderIdinteger, (int32)
Example:1
expandJarArchivesboolean

expandJarArchives

Example:false
eccnstring, [ 0 .. 256 ] characters

eccn

Example:"5D002"
customFieldsArray of objects(CustomFieldModel)

customFields

curl -i -X PUT \
  https://codeinsightapi.redocly.app/_mock/swagger/projects/1 \
  -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,
    "deleteEmptyInventory": false,
    "doNotPublishInventoryUnknownLicense": true,
    "folderId": 1,
    "expandJarArchives": false,
    "eccn": "5D002",
    "customFields": [
      {
        "id": 1,
        "value": "Value for custom field"
      }
    ]
  }'

Responses

OK