[comment]: # translation:outdated

[comment]: # ({35521717-35521717})
# authentication.update

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

[comment]: # ({19c357e4-4244aae4})
### Descrizione

`object authentication.update(object authentication)`

Questo metodo consente di aggiornare le impostazioni di autenticazione esistenti.

::: noteclassic
Questo metodo è disponibile solo per gli utenti di tipo *Super admin*.
Le autorizzazioni per chiamare il metodo possono essere revocate nelle impostazioni del ruolo utente. Consultare
[Ruoli
utente](/manual/web_interface/frontend_sections/users/user_roles)
per ulteriori informazioni.
:::

[comment]: # ({/19c357e4-4244aae4})

[comment]: # ({105c772c-6894664c})
### Parametri

`(object)` [Proprietà di autenticazione](object#authentication) da aggiornare.

[comment]: # ({/105c772c-6894664c})

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

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

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

[comment]: # ({8072648f-f95d3166})
### Esempi

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

```json
{
    "jsonrpc": "2.0",
    "method": "authentication.update",
    "params": {
        "http_auth_enabled": 1,
        "http_case_sensitive": 0,
        "http_login_form": 1
    },
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": [
        "http_auth_enabled",
        "http_case_sensitive",
        "http_login_form"
    ],
    "id": 1
}
```

[comment]: # ({/8072648f-f95d3166})

[comment]: # ({97fcecb8-8e7357d5})
### Sorgente

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

[comment]: # ({/97fcecb8-8e7357d5})
