Imports a file from an external URL directly into the Media Manager.
Call this method to import files from external URLs into the Media Manager, such as files hosted on another site or server.
To import a file, you need to do one of the following:
mimeType field of the request. For example, mimeType: 'image/jpeg'.displayName or url field of the request. For example, displayName: 'Example Image.jpeg or url: https://www.example.com/image.jpeg.Notes:
mediaType field of the request. For example, mediaType: 'IMAGE'.This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:
Publicly accessible URL for the file to import.
There is 1 error with this status code.
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.