Home / Docs Center / Device API Reference / ModifySecret Key
ModifySecret Key
Project: Device API Documentation (New Version) | page_id: 260
Brief Description:
- Modify the secret key
Request URL:
- /xsw/api/modUserSecret
Request Method:
- POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| value | Yes | string | Secret key, base64 encrypted string |
| mode | Yes | int | Whether to disable the old API. 0 supports both old and new by default. 1 disables the old API |
Response Example
{
"code": 0,
"msg": "",
}
Response Parameter Description
| Parameter | Type | Description |
|---|---|---|
| code | int | Status code. 0 means success. Others mean failure |
| msg | string | Failure message |
Notes
- None
Didn't find what you need?Contact us,Talk to our engineers directly.