{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Updates an existing rule.","properties":{"path":{"type":"object","properties":{"account_id":{"type":"string","examples":["023e105f4ecef8ad9ca31a8372d0c353"],"description":"Cloudflare account ID."},"id":{"description":"The unique identifier for the rule.","type":"string","format":"uuid","examples":["550e8400-e29b-41d4-a716-446655440000"]}},"required":["account_id","id"],"additionalProperties":false},"body":{"$ref":"#/definitions/cloudforce-one_UpdateRule"}},"required":["path"],"additionalProperties":false,"definitions":{"cloudforce-one_UpdateRule":{"type":"object","properties":{"commit_message":{"description":"Human-readable justification for this change. Required for internal-account submissions; optional for customer accounts and automated sync.","type":"string","maxLength":1000,"examples":["Reduce false positives on legit CI workers."]},"content":{"minLength":1,"type":"string","examples":["rule example { condition: true }"]},"description":{"description":"Human-readable description of the rule. Auto-extracted from YARA meta if present.","type":"string","maxLength":1000,"examples":["Detects malicious proxy workers"]},"enabled":{"description":"Whether this rule is active for dice consumers.","type":"boolean","examples":[true]},"is_public":{"description":"Whether this rule is visible to other internal accounts.","type":"boolean","examples":[false]},"meta":{"description":"Adds YARA meta entries to the rule's meta block and stores them in rule_meta alongside content metadata. Use valid YARA identifiers for keys; exclude 'name', 'enabled', and 'description'. You may repeat keys.","type":"array","items":{"$ref":"#/definitions/cloudforce-one_MetaInputEntry"},"maxItems":50},"name":{"type":"string","maxLength":255,"minLength":1,"examples":["block-malicious-workers"]},"namespaces":{"type":"array","items":{"maxLength":255,"minLength":1,"type":"string"},"examples":[["yara/workers"]]},"path":{"description":"Path change goes through approval workflow.","type":"string","minLength":1,"examples":["yara/workers"]}}},"cloudforce-one_MetaInputEntry":{"description":"A YARA meta entry. The server resolves its value type. The 'detection' key accepts MALICIOUS, SUSPICIOUS, SPAM, or SPOOF.","type":"object","properties":{"key":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-zA-Z_][a-zA-Z0-9_]*$"},"value":{"anyOf":[{"maxLength":10000,"type":"string"},{"type":"number"},{"type":"boolean"}]}},"required":["key","value"]}}},"name":"Update a rule","id":"cloudflare.cloudforce-one-update-rule","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","id":"550e8400-e29b-41d4-a716-446655440000"}},"maxRequests":1,"summary":false}}