Add new rule with either file info or rule info. Note: Value for detectionCriteria is an array of string Eg. detectionCriteria: ["filepath1 or folderpath1","filepath2 or folderpath2"]. Parameters fileInfo and ruleInfo are mutually exclusive.
Add new rule.
Created
Bad Request
Unauthorized
Internal Server Error
{- "componentId": "1",
- "versionId": "1",
- "licenseId": "1",
- "description": "description",
- "noticesText": "Sample Notices Text",
- "auditNotes": "Sample Audit Notes",
- "asFoundLicenseText": "Sample from file LICENSE.txt in file @file in the materials",
- "fileInfo": [
- {
- "name": "fileName",
- "md5": "md5"
}
], - "ruleInfo": [
- {
- "detectionType": "filePath",
- "detectionCriteria": "[filepath]"
}
]
}
Update existing rule. Note: Value for detectionCriteria is an array of string Eg. detectionCriteria: ["filepath1 or folderpath1","filepath2 or folderpath2"]. Parameters fileInfo and ruleInfo are mutually exclusive.
Update existing rule.
OK
Bad Request
Unauthorized
Internal Server Error
{- "id": "1",
- "componentId": "1",
- "versionId": "1",
- "licenseId": "1",
- "description": "description",
- "noticesText": "Sample Notices Text",
- "auditNotes": "Sample Audit Notes",
- "asFoundLicenseText": "Sample from file LICENSE.txt in file @file in the materials",
- "fileInfo": [
- {
- "name": "fileName",
- "md5": "md5"
}
], - "ruleInfo": [
- {
- "detectionType": "filePath",
- "detectionCriteria": "[filepath]"
}
]
}