settings.update

Description

object settings.update(object settings)

This method allows to update existing common settings.

This method is only available to Super admin user type. Permissions to call the method can be revoked in user role settings. See User roles for more information.

Parameters

(object) Settings properties to be updated.

Return values

(array) Returns array with the names of updated parameters.

Examples

Request:

  1. {
  2. "jsonrpc": "2.0",
  3. "method": "settings.update",
  4. "params": {
  5. "login_attempts": "1",
  6. "login_block": "1m"
  7. },
  8. "auth": "038e1d7b1735c6a5436ee9eae095879e",
  9. "id": 1
  10. }

Response:

  1. {
  2. "jsonrpc": "2.0",
  3. "result": [
  4. "login_attempts",
  5. "login_block"
  6. ],
  7. "id": 1
  8. }

Source

CSettings::update() in ui/include/classes/api/services/CSettings.php.