{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-import-from-url-request-schema.json",
  "title": "ImportFromUrlRequest",
  "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/ImportFromUrlRequest",
  "type": "object",
  "properties": {
    "assetMetadata": {
      "$ref": "#/$defs/ImportAssetMetadata"
    },
    "folder": {
      "$ref": "#/$defs/ImportTargetFolder"
    },
    "files": {
      "type": "array",
      "minItems": 1,
      "maxItems": 300,
      "items": {
        "type": "object",
        "properties": {
          "assetMetadata": {
            "$ref": "#/$defs/ImportAssetMetadata"
          },
          "fileName": {
            "type": "string",
            "description": "Name of the file as it will appear in the repository after upload"
          },
          "mimeType": {
            "type": "string",
            "description": "The file format of the resource"
          },
          "fileSize": {
            "type": "integer",
            "description": "The size, in bytes, of the file to be imported",
            "format": "int64"
          },
          "url": {
            "type": "string",
            "minLength": 10,
            "description": "The url from which to import",
            "format": "uri"
          }
        },
        "required": [
          "fileName",
          "url"
        ]
      }
    },
    "sourceName": {
      "type": "string",
      "description": "A user-friendly display name for the source of the assets"
    }
  },
  "required": [
    "folder",
    "files"
  ],
  "$defs": {
    "ImportAssetMetadata": {
      "description": "Metadata properties and values that should be applied to assets that are part of the import.\nClient should use the assetMetadata properties as exposed by the metadata API endpoints.\n",
      "type": "object",
      "additionalProperties": true
    },
    "ImportTargetFolder": {
      "type": "string",
      "description": "The ID or path for the folder into which to import the assets in AEM.",
      "minLength": 1
    }
  }
}