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. Only users with Library Manager role can create rules.
Add new rule.
Created
Bad Request
Unauthorized
Internal Server Error
{- "asFoundLicenseText": "Sample from file LICENSE.txt in file @file in the materials",
- "auditNotes": "Sample Audit Notes",
- "componentId": "1",
- "description": "description",
- "fileInfo": [
- {
- "md5": "md5",
- "name": "fileName"
}
], - "inventoryName": "Custom Inventory Name",
- "licenseId": "1",
- "noticesText": "Sample Notices Text",
- "ruleInfo": [
- {
- "detectionCriteria": "[filepath]",
- "detectionType": "filePath"
}
], - "versionId": "1"
}
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. Only users with Library Manager role can update rules.
Update existing rule.
OK
Bad Request
Unauthorized
Internal Server Error
{- "asFoundLicenseText": "Sample from file LICENSE.txt in file @file in the materials",
- "auditNotes": "Sample Audit Notes",
- "componentId": "1",
- "description": "description",
- "fileInfo": [
- {
- "md5": "md5",
- "name": "fileName"
}
], - "id": "1",
- "inventoryName": "Custom Inventory Name",
- "licenseId": "1",
- "noticesText": "Sample Notices Text",
- "ruleInfo": [
- {
- "detectionCriteria": "[filepath]",
- "detectionType": "filePath"
}
], - "versionId": "1"
}