{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-external-connectors-connection-operation-schema.json",
  "title": "microsoft.graph.externalConnectors.connectionOperation",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-connections-connectionoperation-api-openapi.yml#/components/schemas/microsoft.graph.externalConnectors.connectionOperation",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "connectionOperation",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "error": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.publicError"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "If status is failed, provides more information about the error that caused the failure."
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.externalConnectors.connectionOperationStatus"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Indicates the status of the asynchronous operation. The possible values are: unspecified, inprogress, completed, failed, unknownFutureValue."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.externalConnectors.connectionOperation",
  "$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.externalConnectors.connectionOperationStatus": {
      "title": "connectionOperationStatus",
      "enum": [
        "unspecified",
        "inprogress",
        "completed",
        "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"
        }
      }
    }
  }
}