Authorization: Bearer ********************
metadata
with name sys:restore_uri
, which can be parsed as a URI.null
, all permissions are granted.{
"uri": "cloudreve://my/Inspirations/old.txt",
"new_name": "new.txt"
}
curl --location --request POST '/file/rename' \
--header 'X-Cr-Purchase-Ticket: 1f63aa26-edc0-40ce-950a-cb4d4323158e' \
--header 'Content-Type: application/json' \
--data-raw '{
"uri": "cloudreve://my/Inspirations/old.txt",
"new_name": "new.txt"
}'
0
- Success.{
"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": ""
}