{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-import-job-result-schema.json",
  "title": "ImportJobResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-aem-assets-author-openapi.yml#/components/schemas/ImportJobResult",
  "type": "object",
  "properties": {
    "cursor": {
      "$ref": "#/$defs/Cursor"
    },
    "items": {
      "type": "array",
      "description": "The list of files that have been processed by the import job whether successfully or not",
      "items": {
        "type": "object",
        "description": "The list of files that have been processed by the import job whether successfully or not",
        "properties": {
          "url": {
            "type": "string",
            "description": "The URL of the item",
            "format": "url",
            "minLength": 1
          },
          "fileName": {
            "type": "string",
            "description": "The name of the item",
            "minLength": 1
          },
          "fileSize": {
            "type": "integer",
            "description": "The size of the item in bytes",
            "format": "int64",
            "minimum": 0
          },
          "mimeType": {
            "type": "string",
            "description": "The file format of the resource",
            "minLength": 1
          },
          "assetId": {
            "$ref": "#/$defs/AssetId"
          },
          "error": {
            "type": "object",
            "description": "An error object if the item failed to import",
            "allOf": [
              {
                "$ref": "#/$defs/ProblemDetails"
              }
            ]
          },
          "status": {
            "type": "string",
            "minLength": 6,
            "description": "The status of the file",
            "enum": [
              "imported",
              "failed",
              "processing"
            ]
          }
        },
        "required": [
          "fileName"
        ]
      }
    }
  },
  "$defs": {
    "AssetId": {
      "type": "string",
      "description": "ID of the asset",
      "minLength": 1
    },
    "Cursor": {
      "description": "A cursor is an opaque string that can be used in API calls which support paginating the response. A non-existent cursor\nsignifies that the returned list does not have more elements.\n",
      "type": "string",
      "minLength": 1
    },
    "ProblemDetails": {
      "description": "A [RFC7807](https://www.rfc-editor.org/rfc/rfc7807) JSON Problem Details Object",
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "A URI reference [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) to a URL, which, when dereferenced, provides human readable documentation for the problem type.  The problem type may be equivalent to the `status` or may be a \"sub-type\".  This URI is not intended to be parsed by clients; rather it should be treated as an opaque string that uniquely represents the error condition as-is.",
          "minLength": 1
        },
        "title": {
          "type": "string",
          "description": "A short, human-readable summary of the problem type.",
          "minLength": 1
        },
        "status": {
          "type": "integer",
          "description": "The HTTP status code ([RFC9110], Section 15) generated by the origin server for this occurrence of the problem.",
          "minLength": 1
        },
        "detail": {
          "type": "string",
          "description": "A human-readable explanation specific to this occurrence of the problem.",
          "minLength": 1
        },
        "requestId": {
          "type": "string",
          "description": "A unique identifier that is assigned to the request, either by the API caller or by the service itself.\n",
          "minLength": 1
        }
      },
      "required": [
        "type",
        "title",
        "status",
        "detail"
      ]
    }
  }
}