- 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
Mount storage policy
PATCH
/file/policy
Auth: JWT Required
Request
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Body Params application/json
policy_id
string
required
Example:
mqHp
Example
{
"uri": "cloudreve://my/Inspirations",
"policy_id": "mqHp"
}
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 --location --request PATCH '/file/policy' \
--header 'Content-Type: application/json' \
--data-raw '{
"uri": "cloudreve://my/Inspirations",
"policy_id": "mqHp"
}'
Responses
🟢200Success
application/json
Body
code
integer
required
0
- Success.Default:
0
Example:
0
msg
string
optional
error
string | null
optional
correlation_id
string <uuid> | null
optional
Example:
b4351ecc-ee1a-4455-bc94-2c3dbcc58538
Example
{
"code": 0,
"msg": ""
}
Modified at 2025-06-13 02:54:18