feat: add quark rename API
- storage/quark/v1/usage.md: 新增重命名操作
- ref/quark-netdisk-helper/SKILL.md: 新增重命名操作
- ref/resource-pipeline/quark-api.md: 端点表新增重命名
POST /1/clouddrive/file/rename {"fid":"...","file_name":"..."}
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -124,6 +124,20 @@ curl -s -X POST "https://drive-h.quark.cn/1/clouddrive/file/move?pr=ucpro&fr=pc&
|
||||
- `filelist` 建议 ≤30 个 FID 一批
|
||||
- 返回 `data.finish: true` 表示完成
|
||||
|
||||
### 重命名文件
|
||||
|
||||
```bash
|
||||
curl -s -X POST "https://drive-h.quark.cn/1/clouddrive/file/rename?pr=ucpro&fr=pc&__t=$(date +%s)000" \
|
||||
-H "cookie: $COOKIE" \
|
||||
-H "content-type: application/json" \
|
||||
-H "origin: https://pan.quark.cn" \
|
||||
-H "referer: https://pan.quark.cn/" \
|
||||
-d '{"fid":"<文件FID>","file_name":"<新文件名>"}'
|
||||
```
|
||||
|
||||
- `fid`:要重命名的文件 FID
|
||||
- `file_name`:新文件名(含扩展名)
|
||||
|
||||
### 删除文件
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user