Performs the upload of N files to temporary storage through N external download links.
In the response, it sends a list of structures containing the file body ID in the storage and the error if one occurred during the upload. The order of structures in the response corresponds to the order of download links in the request.
Next, it is necessary to initialize the files, otherwise they will be deleted as unnecessary. The storage duration for a temporary file is 60 minutes. Each file can be initialized individually using the endpoint /disk/file/move. Place them in directories or save them in apps.
Alternatively, you can initialize the files in bulk using the endpoint /disk/files. Place them in the corresponding directories.

Request

POST /pub/v1/disk/uploads/from-link

Request body

The resource sent in the request body is  Bulk upload of files and links — Request. It contains the following writable properties:

{
    "downloadLinks": [
        "string"
    ]
}

Properties

Name Type Description Additional
downloadLinks[] array of string

List of file upload links
in the following format: ["https://hosting.example/image.png", "https://hosting.example/imageOther.png", ...]

Authorization

This request requires the use of one of following authorisation methods: API key

Response

The following HTTP status codes may be returned:

Status code Description Resource
200 OK

Model of the response for package upload of files using links.

Model of the response for package upload of files using links (Bulk upload of files and links)
422

Model of the response for package upload of files using links.

Model of the response for package upload of files using links (Bulk upload of files and links)