Home / Docs Center / Device API Reference / ModifySecret Key

ModifySecret Key

Device API Reference · New API

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.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.