- Replace the malicious copy paste detection configuration
Retrieve the malicious copy paste detection configuration
Replace the malicious cop...
Replaces your organization's malicious copy paste detection configuration with the configuration you send. Any rule you don't include is deleted.
A rule with an id updates the existing rule with that id. A rule without an id is created. Rules are evaluated in the order you send them, and the first rule that matches wins.
To change part of the configuration, retrieve it first, apply your changes, and send the complete configuration back.
Security
x-api-key
PUT
- Remove all rules
- Block malicious pastes for the Finance group
curl -i -X PUT \
https://api.pushsecurity.com/v1/controls/maliciousCopyPasteDetection/configuration \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"globals": {},
"rules": []
}'Response
{ "globals": { "ignoredHosts": [ "*.internal.example.com", "build-server", "10.0.1.1" ] }, "rules": [ { "id": "c478966c-f927-411c-b919-179832d3d50c", "name": "Block malicious paste for Finance", "enabled": true, "mode": "BLOCK", "title": "Paste blocked", "subtext": "This paste looks malicious and has been blocked.", "buttonText": "Proceed anyway", "safeText": "This paste is safe to use.", "payloadCollection": true, "osTarget": "WINDOWS", "criteria": { "employeeIds": { "matches": [ … ] }, "employeeGroups": { "matches": [ … ] } } } ] }