{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-document-intelligence/json-schema/azure-document-intelligence-copy-operation-result-schema.json",
  "title": "CopyOperationResult",
  "description": "Status and result of the queued copy operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-document-intelligence-custom-api-openapi.yml#/components/schemas/CopyOperationResult",
  "type": "object",
  "required": [
    "status",
    "createdDateTime",
    "lastUpdatedDateTime"
  ],
  "properties": {
    "status": {
      "description": "Operation status.",
      "$ref": "#/$defs/OperationStatus"
    },
    "createdDateTime": {
      "format": "date-time",
      "description": "Date and time (UTC) when the copy operation was submitted.",
      "type": "string"
    },
    "lastUpdatedDateTime": {
      "format": "date-time",
      "description": "Date and time (UTC) when the status was last updated.",
      "type": "string"
    },
    "copyResult": {
      "description": "Results of the copy operation.",
      "$ref": "#/$defs/CopyResult"
    }
  },
  "$defs": {
    "CopyResult": {
      "description": "Custom model copy result.",
      "type": "object",
      "required": [
        "modelId"
      ],
      "properties": {
        "modelId": {
          "description": "Identifier of the target model.",
          "type": "string",
          "format": "uuid"
        },
        "errors": {
          "description": "Errors returned during the copy operation.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ErrorInformation"
          }
        }
      }
    },
    "ErrorInformation": {
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      }
    },
    "OperationStatus": {
      "type": "string",
      "description": "Status of the queued operation.",
      "enum": [
        "notStarted",
        "running",
        "succeeded",
        "failed"
      ],
      "x-ms-enum": {
        "name": "OperationStatus",
        "modelAsString": false
      }
    }
  }
}