- Site
- Session
- User
- Callback
- Workflow
- File
- Permission
- Upload
- Pin
- Version
- Direct Link
- List filesGET
- List file activitiesGET
- Get file infoGET
- Get thumbnail URLGET
- Update file contentPUT
- Create viewer sessionPUT
- Create filePOST
- Rename filePOST
- Move or copy filesPOST
- Create download URLPOST
- Restore from trash binPOST
- Delete fileDELETE
- Force unlockDELETE
- Patch metadataPATCH
- Mount storage policyPATCH
- Update view settingPATCH
- Share
- VAS
- Group
- WebDAV
Patch metadata
PATCH
/file/metadata
Auth: JWT Optional
Request
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Header Params
X-Cr-Purchase-Ticket
string
optional
Example:
1f63aa26-edc0-40ce-950a-cb4d4323158e
Body Params application/json
patches
array [object {3}]
required
key
string
required
sys:*
,dav:*
, customize:*
, tag:*
.Example:
customize:icon_color
value
string | null
optional
remove
boolean | null
optional
true
, metadata with given key will be removed.Examples
{
"uris": [
"cloudreve://my/test_folder",
"cloudreve://my/alit",
"cloudreve://my/Inspirations"
],
"patches": [
{
"key": "customize:icon_color",
"value": "#d50000",
"remove": false
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request PATCH '/file/metadata' \
--header 'X-Cr-Purchase-Ticket: 1f63aa26-edc0-40ce-950a-cb4d4323158e' \
--header 'Content-Type: application/json' \
--data-raw '{
"uris": [
"cloudreve://my/test_folder",
"cloudreve://my/alit",
"cloudreve://my/Inspirations"
],
"patches": [
{
"key": "customize:icon_color",
"value": "#d50000",
"remove": false
}
]
}'
Responses
🟢200Success
application/json
Body
code
integer
required
0
- Success.Default:
0
Example:
0
msg
string
optional
error
string | null
optional
aggregated_error
object | null
optional
Response
.Additional properties
object (Response)
optional
correlation_id
string <uuid> | null
optional
Example:
b4351ecc-ee1a-4455-bc94-2c3dbcc58538
Example
{
"code": 0,
"msg": ""
}
Modified at 2025-06-10 08:31:14