[comment]: # translation:outdated

[comment]: # ({acca5f57-acca5f57})
# settings.update

[comment]: # ({/acca5f57-acca5f57})

[comment]: # ({6375071d-9252b567})
### Descrizione

`object settings.update(object settings)`

Questo metodo consente di aggiornare le impostazioni comuni esistenti.

::: noteclassic
Questo metodo è disponibile solo per il tipo di utente *Super admin*.
I permessi per chiamare il metodo possono essere revocati nelle impostazioni del ruolo utente. Vedere
[Ruoli utente](/manual/web_interface/frontend_sections/users/user_roles)
per ulteriori informazioni.
:::

[comment]: # ({/6375071d-9252b567})

[comment]: # ({0782d4ac-7e621fea})
### Parametri

`(object)` [Proprietà impostazioni](object#settings) da aggiornare.

[comment]: # ({/0782d4ac-7e621fea})

[comment]: # ({f63e579c-440363c6})
### Valori restituiti

"(array)" Restituisce un array con i nomi dei parametri aggiornati.

[comment]: # ({/f63e579c-440363c6})

[comment]: # ({475c98ad-c59f767c})
### Esempi

[Richiesta](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "settings.update",
    "params": {
        "login_attempts": "1",
        "login_block": "1m"
    },
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": [
        "login_attempts",
        "login_block"
    ],
    "id": 1
}
```

[comment]: # ({/475c98ad-c59f767c})

[comment]: # ({e23f9161-e23f9161})
### Fonte

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

[comment]: # ({/e23f9161-e23f9161})
