Update Badge Rule
update_badge_ruleUpdate a badge rule. Pass only the fields to change; omitted fields keep their values. Confirm with the user first. Each condition is an object: {condition, category, threshold, seconds}. condition is one of SCORE_LT, SCORE_LTE, SCORE_GT, SCORE_GTE (with category HUMANITY, AUTHENTICITY, UNIQUENESS, BEHAVIOR, or ANY to match any category, and threshold 0-100) or IDENTITY_AGE_GT (with seconds since the identity was first seen). Badge rules cannot reference other badges (no BADGE_EXISTS) and have no IDENTITY_AGE_LT; use an escalation rule for those. All conditions must hold for the badge to apply. Returns the updated rule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Badge rule id. | |
| name | No | New name, up to 50 characters. | |
| type | No | New type. | |
| enabled | No | Enable or disable the rule. | |
| priority | No | New priority. | |
| conditions | No | New conditions, replacing the current set. | |
| applyDelaySeconds | No | New apply delay in seconds. | |
| removeDelaySeconds | No | New remove delay in seconds. |