[comment]: # ({01172e81-38f2889f})
# 2.更新

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

[comment]: # ({948f7c46-e2b15ba0})
### 说明

`object autoregistration.update(object autoregistration)`

该方法用于更新已存在的自动注册。

[comment]: # ({/948f7c46-e2b15ba0})

[comment]: # ({80122dc8-dc051772})
### PARAMETERS参数

`(object)` 自动注册属性会被更新。

[comment]: # ({/80122dc8-dc051772})

[comment]: # ({75f6c655-4bb135e8})
### RETURN VALUES返回值

`(boolean )` 成功更新后返回布尔值true。

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

[comment]: # ({03fcbeb8-d84ea91e})
### 例子

请求:

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

响应:

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

[comment]: # ({/03fcbeb8-d84ea91e})

[comment]: # ({c067f4a3-0e014313})
### 来源

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

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