Set file permissions. Only owner of the file or administrators can perform this action.
Request
Add the parameter Authorization
to Headers,whose value is to concatenate the Token after the Bearer. Example:Authorization: Bearer ********************
Body Params application/json
{
"uris": [
"cloudreve://my/newfile.docx",
"cloudreve://my/main.c"
],
"setting": {
"user_explicit": {
"bnUn": "Dw=="
},
"same_group": "Dw==",
"anonymous": "Aw==",
"everyone": "Cw=="
}
}
Request Code Samples
curl --location --request POST '/file/permission' \
--header 'Content-Type: application/json' \
--data-raw '{
"uris": [
"cloudreve://my/newfile.docx",
"cloudreve://my/main.c"
],
"setting": {
"user_explicit": {
"bnUn": "Dw=="
},
"same_group": "Dw==",
"anonymous": "Aw==",
"everyone": "Cw=="
}
}'
Responses
application/json Modified at 2025-08-12 07:13:02