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:
2026-05-16 22:17:43 +08:00
parent 3d37edfebf
commit 5d296ee38b
3 changed files with 26 additions and 0 deletions
+11
View File
@@ -122,6 +122,17 @@ curl -s -X POST "https://drive-h.quark.cn/1/clouddrive/file/move?pr=ucpro&fr=pc"
- `to_pdir_fid`: 目标文件夹 FID
- `action_type: 1` 表示移动
### 重命名文件
```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":"<新文件名>"}'
```
### 删除文件
```bash
@@ -100,6 +100,7 @@ curl -s -X POST "https://drive-h.quark.cn/1/clouddrive/file/delete?pr=ucpro&fr=p
|------|------|------|
| 列出目录 | GET | `/1/clouddrive/file/sort` |
| 创建文件夹 | POST | `/1/clouddrive/file` |
| 重命名 | POST | `/1/clouddrive/file/rename` |
| 移动 | POST | `/1/clouddrive/file/move` |
| 删除 | POST | `/1/clouddrive/file/delete` |
+14
View File
@@ -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