CreateFileRuleRequest

CreateFileRuleRequest
CreateFileRuleRequest

The SHA-256 is never part of the request: the server takes it from the catalog entry.

JSON Example
{
    "ruleName": "string",
    "action": "string"
}
string
ruleName
Required  

Name of the new Rule, validated as for POST /api/v1/rules

action
Required  

The action chosen when creating a rule from a catalog entry: PREVENT bans the file (stored as BLOCK, the entry becomes BANNED) and ALLOW approves it. The value is matched case-insensitively.

  • PREVENT: Creates a BLOCK rule for the file's SHA-256 and sets the entry to BANNED
  • ALLOW: Creates an ALLOW rule for the file's SHA-256 and sets the entry to APPROVED
Enumeration: PREVENT, ALLOW