PUT api/2.0/settings/security/access This function requires authentication

Description

Sets the security settings to the modules with the IDs specified in the request.

Parameters
Name Description Type Example
items
sent in body
Modules with security information Dictionary(key:string, value:bool)
collection
[{"Key": "one","Value": true}]
Example
PUT api/2.0/settings/security/access
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "items": [
    {
      "Key": "one",
      "Value": true
    }
  ]
}
Returns

Security settings

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "WebItemId": "00000000-0000-0000-0000-000000000000",
      "Users": [
        {
          "Id": "00000000-0000-0000-0000-000000000000",
          "DisplayName": "Mike Zanyatski",
          "Title": "Manager",
          "AvatarSmall": "url to small avatar",
          "ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator"
        }
      ],
      "Groups": [
        {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Name": "Group Name",
          "Manager": "Jake.Zazhitski"
        }
      ],
      "Enabled": true,
      "IsSubItem": false
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <WebItemId>00000000-0000-0000-0000-000000000000</WebItemId>
    <Users>
      <Id>00000000-0000-0000-0000-000000000000</Id>
      <DisplayName>Mike Zanyatski</DisplayName>
      <Title>Manager</Title>
      <AvatarSmall>url to small avatar</AvatarSmall>
      <ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
    </Users>
    <Groups>
      <Id>00000000-0000-0000-0000-000000000000</Id>
      <Name>Group Name</Name>
      <Manager>Jake.Zazhitski</Manager>
    </Groups>
    <Enabled>True</Enabled>
    <IsSubItem>False</IsSubItem>
  </response>
</result>