PUT api/2.0/settings/iprestrictions/settings This function requires authentication

Description

Updates the IP restriction settings with a parameter specified in the request.

Parameters
Name Description Type Example
enable
sent in body
Specifies whether to enable IP restrictions or not Bool value true
Example
PUT api/2.0/settings/iprestrictions/settings
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "enable": true
}
Returns

Updated IP restriction settings

Example Response

application/json

{
  "status": 0,
  "response": {
    "Enable": true
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <Enable>True</Enable>
  </response>
</result>