{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-security-case-operation-schema.json",
  "title": "microsoft.graph.security.caseOperation",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-defender-security-casesroot-api-openapi.yml#/components/schemas/microsoft.graph.security.caseOperation",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "caseOperation",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "action": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.caseAction"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The type of action the operation represents. The possible values are: contentExport,  applyTags, convertToPdf, index, estimateStatistics, addToReviewSet, holdUpdate, unknownFutureValue, purgeData, exportReport, exportResult, holdPolicySync. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: purgeData, exportReport, exportResult, holdPolicySync."
        },
        "completedDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": [
            "string",
            "null"
          ],
          "description": "The date and time the operation was completed.",
          "format": "date-time"
        },
        "createdBy": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.identitySet"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The user that created the operation."
        },
        "createdDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": [
            "string",
            "null"
          ],
          "description": "The date and time the operation was created.",
          "format": "date-time"
        },
        "percentProgress": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "number",
            "null"
          ],
          "description": "The progress of the operation.",
          "format": "int32"
        },
        "resultInfo": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.resultInfo"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Contains success and failure-specific result information."
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.security.caseOperationStatus"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The status of the case operation. The possible values are: notStarted, submissionFailed, running, succeeded, partiallySucceeded, failed, unknownFutureValue."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "$defs": {
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.identity": {
      "title": "identity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta."
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.identitySet": {
      "title": "identitySet",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "application": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.identity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Optional. The application associated with this action."
        },
        "device": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.identity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Optional. The device associated with this action."
        },
        "user": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.identity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Optional. The user associated with this action."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.resultInfo": {
      "title": "resultInfo",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "code": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": "number",
          "description": "The result code.",
          "format": "int32"
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "The message."
        },
        "subcode": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": "number",
          "description": "The result subcode.",
          "format": "int32"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.caseAction": {
      "title": "caseAction",
      "enum": [
        "contentExport",
        "applyTags",
        "convertToPdf",
        "index",
        "estimateStatistics",
        "addToReviewSet",
        "holdUpdate",
        "unknownFutureValue",
        "purgeData",
        "exportReport",
        "exportResult",
        "holdPolicySync"
      ],
      "type": "string"
    },
    "microsoft.graph.security.caseOperationStatus": {
      "title": "caseOperationStatus",
      "enum": [
        "notStarted",
        "submissionFailed",
        "running",
        "succeeded",
        "partiallySucceeded",
        "failed",
        "unknownFutureValue"
      ],
      "type": "string"
    }
  }
}