Create a remote download task.
Request
Add the parameter Authorization
to Headers,whose value is to concatenate the Token after the Bearer. Example:Authorization: Bearer ********************
Body Params application/json
{
"src_file": "cloudreve://my/big-buck-bunny_202112_archive.torrent",
"dst": "cloudreve://my",
"preferred_node_id": "m9uO"
}
Request Code Samples
curl --location --request POST '/workflow/download' \
--header 'Content-Type: application/json' \
--data-raw '{
"src_file": "cloudreve://my/big-buck-bunny_202112_archive.torrent",
"dst": "cloudreve://my",
"preferred_node_id": "m9uO"
}'
Responses
application/json {
"code": 0,
"data": [
{
"created_at": "2025-05-20T13:27:36.003255+08:00",
"updated_at": "2025-05-20T13:27:36.003255+08:00",
"id": "agr0hj",
"status": "queued",
"type": "remote_download",
"summary": {
"props": {
"download": null,
"dst": "cloudreve://my",
"failed": 0,
"src": "",
"src_str": "https://github.com/cloudreve/Cloudreve/releases/download/4.0.0-beta.11/cloudreve_4.0.0-beta.11_darwin_amd64.tar.gz"
}
}
}
],
"msg": ""
}
Modified at 2025-08-12 07:13:02