Update view settings for given folder. Only owner of the folder can update view settings.
Request
Add the parameter Authorization
to Headers,whose value is to concatenate the Token after the Bearer. Example:Authorization: Bearer ********************
Body Params application/json
{
"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 Code Samples
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
application/json {
"code": 0,
"msg": "anim adipisicing ullamco dolore et"
}
Modified at 2025-08-12 07:13:02