Rules
REST API operations for rules
Overview
Use these API operations to interact with rules in Panther.
The rules API entity is only applicable to Python rules. To interact with rules created as Simple/YAML rules, see Simple Rules.
To call the API, see the How to use the Panther REST API instructions—including directions for how to invoke it directly from this documentation page.
Required permissions
For
GEToperations, your API token must have theView Rulespermission.For
POST,PUT, andDELETEoperations, your API token must have theManage Rulespermission.
Operations
set this field to false to exclude running tests prior to saving
trueset this field to true if you want to run tests without saving
falseThe python body of the rule
The amount of time in minutes for grouping alerts
60The description of the rule
The display name of the rule
Determines whether or not the rule is active
The id of the rule
The filter for the rule represented in YAML
log types
Determines if the rule is managed by panther
How to handle the generated alert
A list of fields in the event to create top 5 summaries for
The tags for the rule
the number of events that must match before an alert is triggered
1OK response.
No Content response.
bad_request: Bad Request response.
exists: Conflict response.
put creates or updates a rule
the id of the rule
set this field to false to exclude running tests prior to saving
trueset this field to true if you want to run tests without saving
falseThe python body of the rule
The amount of time in minutes for grouping alerts
60The description of the rule
The display name of the rule
Determines whether or not the rule is active
The id of the rule
The filter for the rule represented in YAML
log types
Determines if the rule is managed by panther
How to handle the generated alert
A list of fields in the event to create top 5 summaries for
The tags for the rule
the number of events that must match before an alert is triggered
1200 returned if the item already existed
201 returned if the item was created
No Content response.
bad_request: Bad Request response.
Last updated
Was this helpful?

