Bulk file upload via links
Performs the upload of N files to temporary storage through N external download links.
The response returns 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 file upload via links — Request. It contains the following writable properties:
{
"downloadLinks": [
"string"
]
}
Properties
Name | Type | Description | Additional |
---|---|---|---|
downloadLinks[] | array of string |
List of file upload links |
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 file upload via 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 file upload via links) |