{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scalix-world/json-schema/scalix-world-put-v1-waf-rules-id-request-schema.json",
  "title": "PutV1WafRulesIdRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/scalix-world-openapi-generated.yml#/components/schemas/PutV1WafRulesIdRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "pattern": {
      "type": "string"
    },
    "action": {
      "type": "string",
      "description": "enum: block, log, challenge, rate_limit"
    },
    "priority": {
      "type": "integer"
    },
    "enabled": {
      "type": "boolean",
      "description": "SEC-6: enable/disable a rule. Defaults to enabled on create; on update, this is what makes the toggle actually work (the old update ignored it)."
    }
  },
  "required": [
    "name",
    "pattern",
    "action"
  ]
}