- 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
Update view setting
PATCH
/file/view
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
uri
string
required
view
optional
Any of
page_size
integer
required
>= 50
order
string
optional
<= 255 characters
order_direction
enum<string>
optional
Allowed values:
ascdesc
view
enum<string>
optional
Allowed values:
listgridgallery
thumbnail
boolean
optional
gallery_width
integer
optional
>= 50<= 500
columns
array[object (ListViewColumn) {3}]
optional
<= 1000 items
Example
{
"uri": "cloudreve://my/Inspirations",
"view": {
"page_size": 50,
"order": "updated_at",
"order_direction": "desc",
"view": "list",
"thumbnail": true,
"columns": [
{
"type": 0
},
{
"type": 2
},
{
"type": 8
},
{
"type": 7
}
],
"gallery_width": 50
}
}
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/view' \
--header 'Content-Type: application/json' \
--data-raw '{
"uri": "cloudreve://my/Inspirations",
"view": {
"page_size": 50,
"order": "updated_at",
"order_direction": "desc",
"view": "list",
"thumbnail": true,
"columns": [
{
"type": 0
},
{
"type": 2
},
{
"type": 8
},
{
"type": 7
}
],
"gallery_width": 50
}
}'
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": "anim adipisicing ullamco dolore et"
}
Modified at 2025-06-10 08:12:31