Request
Add the parameter Authorization
to Headers,whose value is to concatenate the Token after the Bearer. Example:Authorization: Bearer ********************
Body Params application/json
{
"uri": "cloudreve://my/Inspirations/old.txt",
"new_name": "new.txt"
}
Request Code Samples
curl --location --request POST '/file/rename' \
--header 'Content-Type: application/json' \
--data-raw '{
"uri": "cloudreve://my/Inspirations/old.txt",
"new_name": "new.txt"
}'
Responses
application/json {
"code": 0,
"data": {
"type": 0,
"id": "rpGq9ds5",
"name": "new.txt",
"permission": null,
"created_at": "2025-05-24T14:17:08+08:00",
"updated_at": "2025-05-24T14:29:13+08:00",
"size": 0,
"metadata": null,
"path": "cloudreve://my/Inspirations/new.txt",
"capability": "39/9",
"owned": true,
"primary_entity": "zOie"
},
"msg": ""
}
Modified at 2025-08-12 07:15:19