[comment]: # translation:outdated

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

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

[comment]: # ({b456b239-4244aae4})
### Опис

`object authentication.update(object authentication)`

Цей метод дозволяє оновити існуючі налаштування автентифікації.

::: noteclassic
Цей метод доступний лише для користувачів типу *Суперадміністратор*. Дозволи на виклик методу можна скасувати в налаштуваннях ролі користувача. Див. [Ролі користувача](/manual/web_interface/frontend_sections/administration/user_roles) для отримання додаткової інформації.
:::

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

[comment]: # ({985408c9-6894664c})
### Параметри

Властивості автентифікації `(object)` буде оновлено.

[comment]: # ({/985408c9-6894664c})

[comment]: # ({5c57fb6f-440363c6})
### Повернуті значення

`(array)` Повертає масив із назвами оновлених параметрів.

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

[comment]: # ({60e3bf16-f95d3166})
### Приклади

запит:

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

Відповідь:

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

[comment]: # ({/60e3bf16-f95d3166})

[comment]: # ({93f392d2-8e7357d5})
### Джерело

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

[comment]: # ({/93f392d2-8e7357d5})
