Severity Rules

List severity rules

List the severity rules currently active for the workspace. These rules determine how incident severity is automatically assigned. Use the rule id to correlate with the severity_rule_id field on incidents.

get/v1/severity-rules

Request

  • Base URL
    https://api.gitguardian.com
  • URL
    https://api.gitguardian.com/v1/severity-rules
  • Auth
    HTTP bearer

Response

List of Severity Rules

idinteger required
namestring required
descriptionstring nullable
severity'critical' | 'high' | 'medium' | 'low' | 'info' | 'unknown' required
scope'public' | 'internal' | 'any' required

Whether the rule applies to internal incidents only, public incidents only, or both

Example response

[
  {
    "id": 42,
    "name": "Default Rule",
    "description": "Applies high severity to all internal incidents",
    "severity": "high",
    "scope": "internal"
  }
]

Changes

No recorded changes to this operation across all 35 revisions of this API.