This is a translation of the original English documentation page. Help us make it better.

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.

Parametri

(object) proprietà delle impostazioni da aggiornare.

Valore restituito

(array) Restituisce l'array con i nomi dei parametri aggiornati.

Examples

Request:

{
           "jsonrpc": "2.0",
           "method": "settings.update",
           "params": {
               "login_attempts": "1",
               "login_block": "1m"
           },
           "auth": "038e1d7b1735c6a5436ee9eae095879e",
           "id": 1
       }
Copy
✔ Copied

Response:

{
           "jsonrpc": "2.0",
           "result": [
               "login_attempts",
               "login_block"
           ],
           "id": 1
       }
Copy
✔ Copied

Fonte

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

To toggle search highlight, press Ctrl+Alt+H
Have an improvement suggestion for this page? Select the text that could be improved and press Ctrl+Enter to send it to the editors.