{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sharepoint/json-schema/sharepoint-microsoft-graph-rich-long-running-operation-schema.json",
  "title": "microsoft.graph.richLongRunningOperation",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sharepoint-sites-richlongrunningoperation-api-openapi.yml#/components/schemas/microsoft.graph.richLongRunningOperation",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.longRunningOperation"
    },
    {
      "title": "richLongRunningOperation",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "error": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.publicError"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Error that caused the operation to fail."
        },
        "percentageComplete": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "number",
            "null"
          ],
          "description": "A value between 0 and 100 that indicates the progress of the operation.",
          "format": "int32"
        },
        "resourceId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique identifier for the result."
        },
        "type": {
          "type": [
            "string",
            "null"
          ],
          "description": "The type of the operation."
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "The status of a long-running operation."
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.richLongRunningOperation",
  "$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.longRunningOperation": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "longRunningOperation",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "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 start time of the operation. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.",
              "format": "date-time"
            },
            "lastActionDateTime": {
              "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 time of the last action in the operation. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.",
              "format": "date-time"
            },
            "resourceLocation": {
              "type": [
                "string",
                "null"
              ],
              "description": "URI of the resource that the operation is performed on."
            },
            "status": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.longRunningOperationStatus"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "The status of the operation. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue."
            },
            "statusDetail": {
              "type": [
                "string",
                "null"
              ],
              "description": "Details about the status of the operation."
            },
            "@odata.type": {
              "type": "string"
            }
          },
          "description": "The status of a long-running operation."
        }
      ]
    },
    "microsoft.graph.longRunningOperationStatus": {
      "title": "longRunningOperationStatus",
      "enum": [
        "notStarted",
        "running",
        "succeeded",
        "failed",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.publicError": {
      "title": "publicError",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "Represents the error code."
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.publicErrorDetail"
          },
          "description": "Details of the error."
        },
        "innerError": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.publicInnerError"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Details of the inner error."
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "A non-localized message for the developer."
        },
        "target": {
          "type": [
            "string",
            "null"
          ],
          "description": "The target of the error."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.publicErrorDetail": {
      "title": "publicErrorDetail",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The error code."
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "The error message."
        },
        "target": {
          "type": [
            "string",
            "null"
          ],
          "description": "The target of the error."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.publicInnerError": {
      "title": "publicInnerError",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The error code."
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.publicErrorDetail"
          },
          "description": "A collection of error details."
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "The error message."
        },
        "target": {
          "type": [
            "string",
            "null"
          ],
          "description": "The target of the error."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  }
}