TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

PUT api/2.0/files/settings/dafaultaccessrights This function requires authentication

Description

Changes the default access rights in the sharing settings.

Parameters
Name Description Type Example
value
sent in body
Sharing rights (None, ReadWrite, Read, Restrict, Varies, Review, Comment, FillForms, CustomFilter, RoomAdmin, Editing, Collaborator) System.Collections.Generic.List{ASC.Files.Core.Security.FileShare}
Example
PUT api/2.0/files/settings/dafaultaccessrights
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "value": [
    "ReadWrite"
  ]
}
Returns

Updated sharing rights (None, ReadWrite, Read, Restrict, Varies, Review, Comment, FillForms, CustomFilter, RoomAdmin, Editing, Collaborator)