uri
, they will be created automatically.Authorization: Bearer ********************
uri
:true
, an error will be returned;false
, no mutation is performed, the existing file in uri
will be returned.{
"type": "file",
"uri": "cloudreve://my/Inspirations/new.txt",
"err_on_conflict": true
}
curl --location --request POST '/file/create' \
--header 'X-Cr-Purchase-Ticket: 1f63aa26-edc0-40ce-950a-cb4d4323158e' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "file",
"uri": "cloudreve://my/Inspirations/new.txt",
"err_on_conflict": true
}'
metadata
with name sys:restore_uri
, which can be parsed as a URI.null
, all permissions are granted.0
- Success.{
"code": 0,
"data": {
"type": 1,
"id": "d08Wy1Hx",
"name": "Q3",
"permission": null,
"created_at": "2025-05-24T14:24:27+08:00",
"updated_at": "2025-05-24T14:24:27+08:00",
"size": 0,
"metadata": null,
"path": "cloudreve://my/Inspirations/Q3",
"capability": "39/9",
"owned": true,
"primary_entity": "zOie"
},
"msg": ""
}