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

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

[comment]: # ({e2b15ba0-e2b15ba0})
### Description

`object autoregistration.update(object autoregistration)`

This method allows to update existing autoregistration.

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

[comment]: # ({dc051772-dc051772})
### Parameters

`(object)` Autoregistration properties to be updated.

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

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

`(boolean )` Returns boolean true as result on successful update.

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

[comment]: # ({d84ea91e-d84ea91e})
### Examples

Request:

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

Response:

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

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

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

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

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