添加离线下载
POST
/api/fs/add_offline_download最后修改时间: 7 个月前
责任人: 未设置
请求参数
Header 参数
Authorization
string
必需
示例值:
{{alist_token}}
Body 参数application/json
urls
array[string]
url
path
string
目标路径
tool
string
工具
可选aria2
,SimpleHttp
和qBittorrent
delete_policy
string
删除策略
可选delete_on_upload_succeed
,delete_on_upload_failed
,delete_never
,delete_always
示例
{
"path": "/local",
"urls": [
"https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png"
],
"tool": "SimpleHttp",
"delete_policy": "delete_on_upload_succeed"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
状态码
message
string
信息
data
object
必需
tasks
array [object {6}]
必需
示例
{
"code": 200,
"message": "success",
"data": {
"tasks": [
{
"id": "jwy7BrfZRzbI2xWg7-y",
"name": "download https://www.baidu.com/img/20d6cf.png to (/local)",
"state": 0,
"status": "",
"progress": 0,
"error": ""
}
]
}
}
最后修改时间: 7 个月前