{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-cdn/json-schema/microsoft-azure-cdn-afdendpoint-update-parameters-schema.json",
  "title": "AFDEndpointUpdateParameters",
  "description": "Properties required to create or update an endpoint.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-cdn-afdendpoints-api-openapi.yml#/components/schemas/AFDEndpointUpdateParameters",
  "type": "object",
  "properties": {
    "tags": {
      "type": "object",
      "description": "Endpoint tags.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "properties": {
      "$ref": "#/$defs/AFDEndpointPropertiesUpdateParameters",
      "description": "The JSON object containing endpoint update parameters.",
      "x-ms-client-flatten": true
    }
  },
  "$defs": {
    "AFDEndpointPropertiesUpdateParameters": {
      "type": "object",
      "description": "The JSON object containing endpoint update parameters.",
      "properties": {
        "profileName": {
          "type": "string",
          "description": "The name of the profile which holds the endpoint.",
          "readOnly": true
        },
        "enabledState": {
          "$ref": "#/$defs/EnabledState",
          "description": "Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'"
        },
        "enforceMtls": {
          "$ref": "#/$defs/EnforceMtlsEnabledState",
          "description": "Set to Disabled by default. If set to Enabled, only custom domains with mTLS enabled can be added to child Route resources."
        }
      }
    },
    "EnabledState": {
      "type": "string",
      "description": "Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "EnabledState",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          }
        ]
      }
    },
    "EnforceMtlsEnabledState": {
      "type": "string",
      "description": "Set to Disabled by default. If set to Enabled, only custom domains with mTLS enabled can be added to child Route resources.",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "x-ms-enum": {
        "name": "EnforceMtlsEnabledState",
        "modelAsString": true,
        "values": [
          {
            "name": "Enabled",
            "value": "Enabled"
          },
          {
            "name": "Disabled",
            "value": "Disabled"
          }
        ]
      }
    }
  }
}