[comment]: # translation:outdated

[comment]: # ({38f2889f-38f2889f})
# autoregistration.update

[comment]: # ({/38f2889f-38f2889f})

[comment]: # ({011d2d29-13c79ed6})
### 説明

`object autoregistration.update(object autoregistration)`

このメソッドは、既存の自動登録を更新することができます。

::: noteclassic
このメソッドは、*Super admin*タイプのユーザーのみ利用可能です。メソッドを呼び出す権限は、ユーザーの役割の設定で取り消すことができます。詳細は[ユーザーの役割](/manual/web_interface/frontend_sections/users/user_roles)を参照してください。
:::

[comment]: # ({/011d2d29-13c79ed6})

[comment]: # ({5d041d55-dc051772})
### パラメーター

`(object)` 更新する[自動登録のプロパティ](object#autoregistration)。

[comment]: # ({/5d041d55-dc051772})

[comment]: # ({4bb135e8-4bb135e8})
### 戻り値

`(boolean)` 更新が成功すると、ブール値trueを返します。

[comment]: # ({/4bb135e8-4bb135e8})

[comment]: # ({5b287322-d84ea91e})
### 例

[リクエスト](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "autoregistration.update",
    "params": {
        "tls_accept": "3",
        "tls_psk_identity": "PSK 001",
        "tls_psk": "11111595725ac58dd977beef14b97461a7c1045b9a1c923453302c5473193478"
    },
    "id": 1
}
```

レスポンス:

```json
{
    "jsonrpc": "2.0",
    "result": true,
    "id": 1
}
```

[comment]: # ({/5b287322-d84ea91e})

[comment]: # ({0e014313-0e014313})
### ソース

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

[comment]: # ({/0e014313-0e014313})
