Skip to content

Create a component custom version

Request

Create a component custom version

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

ID of the Component

Example:1
Bodyapplication/jsonrequired
namestring

name

vulnerabilitySummaryArray of objects
curl -i -X POST \
  https://codeinsightapi.redocly.app/_mock/swagger/components/1/versions \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "vulnerabilitySummary": [
      {
        "property1": {
          "property1": 0,
          "property2": 0
        },
        "property2": {
          "property1": 0,
          "property2": 0
        }
      }
    ]
  }'

Responses

Created