update_access_password
To change the access password for a unit, use the unit/update_access_password method.
svc=unit/update_access_password¶ms={
"itemId": <long>,
"accessPassword": <text>
}
Parameters
The request must contain the following parameters:
| Parameter | Description |
|---|---|
| itemId | Unit ID. |
| accessPassword | New access password. |
Response
If the request is completed successfully, the response contains the new access password.
{
"psw":<text>
}
In case the request fails, an error code is returned.
Error codes
| Error code | Description |
|---|---|
| 4 | Invalid input parameters. |
| 6 | Failed to change the password. |
| 7 | The unit doesn’t exist, or the user doesn’t have the Edit connectivity settings access right to it. |