Get Started
API backend
API system
More information

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

Description

Sets the portal password settings.

Parameters
Name Description Type Example
MinLength
sent in body
Minimum password length
UpperCase
sent in body
Specifies if the password must include the uppercase letters or not System.Boolean
Digits
sent in body
Specifies if the password must include the digits or not System.Boolean
SpecSymbols
sent in body
Specifies if the password must include the special symbols or not System.Boolean
Example
PUT api/2.0/settings/security/password
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "UpperCase": true,
  "Digits": true,
  "SpecSymbols": true
}
Returns

Password settings

Example Response

application/json

{
  "status": 0,
  "response": {
    "MinLength": 1234,
    "AllowedCharactersRegexStr": "some text",
    "UpperCase": true,
    "Digits": true,
    "DigitsRegexStr": "some text",
    "UpperCaseRegexStr": "some text",
    "SpecSymbols": true,
    "SpecSymbolsRegexStr": "some text"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <MinLength>1234</MinLength>
    <AllowedCharactersRegexStr>some text</AllowedCharactersRegexStr>
    <UpperCase>True</UpperCase>
    <Digits>True</Digits>
    <DigitsRegexStr>some text</DigitsRegexStr>
    <UpperCaseRegexStr>some text</UpperCaseRegexStr>
    <SpecSymbols>True</SpecSymbols>
    <SpecSymbolsRegexStr>some text</SpecSymbolsRegexStr>
  </response>
</result>