Create custom rule
Rules
Create custom rule
Create a new natural language security rule that will be applied during scans
POST
Create custom rule
Authorizations
Body
application/json
Name for the custom rule
Natural language description of the security rule
Glob pattern for files this rule applies to
Source types this rule applies to
Available options:
HTTP_HANDLER, FILE_HANDLER, STDIN_HANDLER, BROWSER_DATA, WEBSOCKET, SOCKET, CLI_ARGUMENT, MOBILE_INPUTS Specific repository IDs to apply this rule to (if not specified, applies to all)
Response
Rule created successfully
Natural language description of the security rule
Available options:
HTTP_HANDLER, FILE_HANDLER, STDIN_HANDLER, BROWSER_DATA, WEBSOCKET, SOCKET, CLI_ARGUMENT, MOBILE_INPUTS