{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ad/json-schema/azure-ad-microsoft-graph-process-content-response-schema.json",
  "title": "processContentResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-ad-users-userdatasecurityandgovernance-api-openapi.yml#/components/schemas/microsoft.graph.processContentResponse",
  "required": [
    "@odata.type"
  ],
  "type": "object",
  "properties": {
    "policyActions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/microsoft.graph.dlpActionInfo"
      },
      "description": "A collection of policy actions (like DLP actions) triggered by the processed content. NOTE: Currently, the only policy action supported in for this resource type is restrictAccess."
    },
    "processingErrors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/microsoft.graph.processingError"
      },
      "description": "A collection of errors encountered during the content processing."
    },
    "protectionScopeState": {
      "$ref": "#/$defs/microsoft.graph.protectionScopeState"
    },
    "@odata.type": {
      "type": "string"
    }
  },
  "$defs": {
    "microsoft.graph.classifcationErrorBase": {
      "title": "classifcationErrorBase",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "A service-defined error code string."
        },
        "innerError": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.classificationInnerError"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Contains more specific, potentially internal error details."
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "A human-readable representation of the error."
        },
        "target": {
          "type": [
            "string",
            "null"
          ],
          "description": "The target of the error (for example, the specific property or item causing the issue)."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.classificationError": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.classifcationErrorBase"
        },
        {
          "title": "classificationError",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "details": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.classifcationErrorBase"
              },
              "description": "A collection of more specific errors contributing to the overall error."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ]
    },
    "microsoft.graph.classificationInnerError": {
      "title": "classificationInnerError",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "activityId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The activity ID associated with the request that generated the error."
        },
        "clientRequestId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The client request ID, if provided by the caller."
        },
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "A more specific, potentially internal, error code string."
        },
        "errorDateTime": {
          "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 inner error occurred.",
          "format": "date-time"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.contentProcessingErrorType": {
      "title": "contentProcessingErrorType",
      "enum": [
        "transient",
        "permanent",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.dlpAction": {
      "title": "dlpAction",
      "enum": [
        "notifyUser",
        "blockAccess",
        "deviceRestriction",
        "browserRestriction",
        "unknownFutureValue",
        "restrictAccess",
        "generateAlert",
        "generateIncidentReportAction",
        "sPBlockAnonymousAccess",
        "sPRuntimeAccessControl",
        "sPSharingNotifyUser",
        "sPSharingGenerateIncidentReport",
        "restrictWebGrounding",
        "policyTip"
      ],
      "type": "string"
    },
    "microsoft.graph.dlpActionInfo": {
      "title": "dlpActionInfo",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "action": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.dlpAction"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The type of DLP action. Possible value is restrictAccessAction."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.processingError": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.classificationError"
        },
        {
          "title": "processingError",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "errorType": {
              "$ref": "#/$defs/microsoft.graph.contentProcessingErrorType"
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.processingError"
    },
    "microsoft.graph.protectionScopeState": {
      "title": "protectionScopeState",
      "enum": [
        "notModified",
        "modified",
        "unknownFutureValue"
      ],
      "type": "string"
    }
  }
}