{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-advisor/json-schema/microsoft-azure-advisor-recommendation-patch-payload-schema.json",
  "title": "RecommendationPatchPayload",
  "description": "The recommendation patch payload.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-advisor-resourcerecommendationbases-api-openapi.yml#/components/schemas/RecommendationPatchPayload",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/RecommendationStatePropertiesPayload",
      "description": "The properties for recommendation patch payload."
    }
  },
  "$defs": {
    "RecommendationDismissReason": {
      "type": "string",
      "description": "The reason for dismissing the Recommendation.",
      "enum": [
        "ExcessiveCostInvestmentRequired",
        "TooComplexOrImpracticalToImplement",
        "AnAlternativeSolutionIsAlreadyInPlace",
        "IncompatibleWithTheCurrentConfiguration",
        "ImplementationStepsAreUnclear",
        "RiskIsAcceptable",
        "Other"
      ],
      "x-ms-enum": {
        "name": "RecommendationDismissReason",
        "modelAsString": true,
        "values": [
          {
            "name": "ExcessiveCostInvestmentRequired",
            "value": "ExcessiveCostInvestmentRequired"
          },
          {
            "name": "TooComplexOrImpracticalToImplement",
            "value": "TooComplexOrImpracticalToImplement"
          },
          {
            "name": "AnAlternativeSolutionIsAlreadyInPlace",
            "value": "AnAlternativeSolutionIsAlreadyInPlace"
          },
          {
            "name": "IncompatibleWithTheCurrentConfiguration",
            "value": "IncompatibleWithTheCurrentConfiguration"
          },
          {
            "name": "ImplementationStepsAreUnclear",
            "value": "ImplementationStepsAreUnclear"
          },
          {
            "name": "RiskIsAcceptable",
            "value": "RiskIsAcceptable"
          },
          {
            "name": "Other",
            "value": "Other"
          }
        ]
      }
    },
    "RecommendationStatePropertiesPayload": {
      "type": "object",
      "description": "Properties for recommendation state patch payload.",
      "properties": {
        "recommendationStatus": {
          "$ref": "#/$defs/RecommendationStatus",
          "description": "The state of the recommendation."
        },
        "recommendationDismissReason": {
          "$ref": "#/$defs/RecommendationDismissReason",
          "description": "The reason the state of the Recommendation was changed."
        },
        "postponedUntilDateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time the Recommendation was postponed until."
        }
      }
    },
    "RecommendationStatus": {
      "type": "string",
      "description": "The state of the Recommendation applicable from v2026-02-01-preview.",
      "enum": [
        "New",
        "Postponed",
        "Dismissed",
        "Completed"
      ],
      "x-ms-enum": {
        "name": "RecommendationStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "New",
            "value": "New"
          },
          {
            "name": "Postponed",
            "value": "Postponed"
          },
          {
            "name": "Dismissed",
            "value": "Dismissed"
          },
          {
            "name": "Completed",
            "value": "Completed"
          }
        ]
      }
    }
  }
}