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

Description

Sets the access settings to the products with the IDs specified in the request.

Parameters
Name Description Type Example
Id
sent in body
Module ID string some text
Enabled
sent in body
Specifies if the module security settings are enabled or not Bool value true
Subjects
sent in body
List of user/group IDs with the access to the module Collection of guids
collection
9924256A-739C-462b-AF15-E652A3B1B6EB
Items
sent in body
Products with security information Collection of ASC.Api.Collections.ItemKeyValuePair{System.Strins
collection
Example
PUT api/2.0/settings/security/access
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "Id": "some text",
  "Enabled": true,
  "Subjects": [
    "9924256A-739C-462b-AF15-E652A3B1B6EB"
  ]
}
Returns

Security settings

Example Response
{
  "status": 0,
  "response": [
    {
      "WebItemId": "some text",
      "Enabled": true,
      "IsSubItem": true
    }
  ]
}