This method imports one or more files from the connected provider account into the platform as assets. Videos can be up to 10 GB, audio up to 4 GB, and images up to 32 MB. For each newly imported file, the platform creates an asset in the `processing` status and fetches the file asynchronously. If you import a file that was already imported through this account, the platform returns the existing asset with its current status, without fetching the file again. If the earlier fetch had failed, the platform fetches the file again. The response contains one entry per requested file, in request order. Use the `action` field of each entry to identify which files were newly imported and which were already imported.
Request
This endpoint expects an object.
itemslist of objectsRequired
The files to import. Provide an array of one item for a single import, or multiple items for a batch import. A maximum of 100 items can be imported per request. The source_id field of each item must be unique within a request.
Response
The import request has been accepted. The response contains one item per requested file, in request order. Use the `action` field of each item to identify which files were newly imported and which were already imported. An accepted item includes the identifier and status of its asset. A rejected item includes an `error` object instead, and omits both. The `has_failures` field is `true` when at least one item was rejected. A rejected item does not fail the request; the response is `202` even when no item is accepted.
_idstringOptional
The unique identifier of the import created for this request.
has_failuresbooleanOptional
Whether at least one item was rejected before an asset was created. When true, inspect the error object of each item to identify the rejected ones. An item the platform skipped as a duplicate is not a failure.
itemslist of objectsOptional
One entry per requested file, in request order, with its action value and the current status of its asset.