Skip to content

RulePermissionUpdate

Base classes

Name Children Inherits
BasePermissionUpdate
clawd_code_sdk.models.permissions
Permission update configuration.

⋔ Inheritance diagram

graph TD
  3141705101["permissions.RulePermissionUpdate"]
  2037577776["permissions.BasePermissionUpdate"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2037577776 --> 3141705101
  2604142835 --> 2037577776
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BasePermissionUpdate

Permission update configuration.

behavior is required: Claude Code rejects a rule update without it and then ignores every update in the same response (upstream #1502). A rule with rule_content=None applies to the whole tool and is sent without a ruleContent key.

Source code in src/clawd_code_sdk/models/permissions.py
class RulePermissionUpdate(BasePermissionUpdate):
    """Permission update configuration.

    ``behavior`` is required: Claude Code rejects a rule update without it and
    then ignores every update in the same response (upstream #1502). A rule
    with ``rule_content=None`` applies to the whole tool and is sent without a
    ``ruleContent`` key.
    """

    type: Literal["addRules", "replaceRules", "removeRules"]
    rules: list[PermissionRuleValue]
    behavior: PermissionBehavior

:fa-brands-github: Show source on GitHub