{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/main/json-schema/palo-alto-networks-profile-input-schema.json",
  "title": "profile-input",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/palo-alto-networks-profiles-api-openapi.yml#/components/schemas/profile-input",
  "additionalProperties": false,
  "properties": {
    "category_overrides": {
      "description": "List of category overrides applied to this profile",
      "items": {
        "$ref": "#/$defs/category-override"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "custom_fqdn_overrides": {
      "description": "List of custom FQDN overrides applied to this profile",
      "items": {
        "$ref": "#/$defs/custom-fqdn-override-input"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "description": {
      "description": "Description of the profile",
      "maxLength": 256,
      "type": "string"
    },
    "edl_overrides": {
      "description": "List of EDL overrides applied to this profile",
      "items": {
        "$ref": "#/$defs/edl-override-input"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "name": {
      "description": "Profile name",
      "maxLength": 128,
      "minLength": 4,
      "type": "string"
    },
    "safesearch_enabled": {
      "description": "Enable SafeSearch filtering",
      "type": "boolean"
    },
    "youtube_restricted_mode": {
      "description": "YouTube restricted mode - set to 'moderate' or 'strict' to filter content; omit to leave YouTube unrestricted",
      "enum": [
        "moderate",
        "strict"
      ],
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "type": "object",
  "$defs": {
    "category-override": {
      "additionalProperties": false,
      "properties": {
        "action": {
          "description": "Action to take (allow, block, sinkhole, alert)",
          "enum": [
            "allow",
            "block",
            "sinkhole",
            "alert"
          ],
          "type": "string"
        },
        "category_id": {
          "description": "Category identifier",
          "type": "string"
        },
        "custom_sinkhole_id": {
          "description": "Custom sinkhole identifier",
          "type": "string"
        },
        "is_custom_sinkhole": {
          "description": "Whether a custom sinkhole is used",
          "type": "boolean"
        }
      },
      "required": [
        "category_id",
        "action"
      ],
      "type": "object"
    },
    "custom-fqdn-override-input": {
      "additionalProperties": false,
      "properties": {
        "action": {
          "description": "Action to take (allow, block, sinkhole, alert)",
          "enum": [
            "allow",
            "block",
            "sinkhole",
            "alert"
          ],
          "type": "string"
        },
        "custom_sinkhole_id": {
          "description": "Custom sinkhole identifier",
          "type": "string"
        },
        "id": {
          "description": "Unique identifier for the custom FQDN override",
          "type": "string"
        },
        "is_custom_sinkhole": {
          "description": "Whether a custom sinkhole is used",
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "action"
      ],
      "type": "object"
    },
    "edl-override-input": {
      "additionalProperties": false,
      "properties": {
        "action": {
          "description": "Action to take (allow, block, sinkhole, alert)",
          "enum": [
            "allow",
            "block",
            "sinkhole",
            "alert"
          ],
          "type": "string"
        },
        "custom_sinkhole_id": {
          "description": "Custom sinkhole identifier",
          "type": "string"
        },
        "id": {
          "description": "Unique identifier for the EDL override",
          "type": "string"
        },
        "is_custom_sinkhole": {
          "description": "Whether a custom sinkhole is used",
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "action"
      ],
      "type": "object"
    }
  }
}