Skip to content

Update a user-defined license evidence rule

Request

Updates an existing rule. Requires Library Manager permission.

Security
bearerAuth
Path
idinteger, (int64)required
Bodyapplication/json
licenseFragmentstringrequired

Exact text fragment to match in scanned files

Example:"MIT License"
licenseIdinteger, (int64)required

ID of the license to associate with matched files

Example:42
curl -i -X PUT \
  'https://codeinsightapi.redocly.app/_mock/swagger/rules/licenseEvidences/{id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "licenseFragment": "MIT License",
    "licenseId": 42
  }'

Responses

OK