{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-structure/prisma-access-browser-api-browser-policy-request-structure.json",
  "name": "BrowserPolicyRequest",
  "description": "BrowserPolicyRequest schema from Palo Alto Networks Prisma Access Browser Management API",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Display name for the browser policy."
    },
    "description": {
      "type": "string",
      "description": "Optional description."
    },
    "enabled": {
      "type": "boolean",
      "default": true
    },
    "web_filtering": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "blocked_categories": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "dlp_enabled": {
      "type": "boolean",
      "default": false
    },
    "extension_policy": {
      "type": "string",
      "enum": [
        "allow_all",
        "allow_list",
        "block_all"
      ],
      "default": "allow_all"
    },
    "download_control": {
      "type": "string",
      "enum": [
        "allow",
        "scan",
        "block"
      ],
      "default": "allow"
    }
  },
  "required": [
    "name"
  ]
}
