Set Security Questions
# Set Security Questions
Path:
/api/question
Method: POST
Content-type: application/json; charset=utf-8
API Description: This can be used to set security questions (for LAN encryption).
Note: This feature is supported in version 1.70.2 and later.
Request
| Name | Type | Example | Description |
|---|---|---|---|
| questions | List | - | Question |
| enable | bool | true | Whether to enable questions |
| password | string | "console" | Current password |
Question
| Name | Type | Example | Description |
|---|---|---|---|
| question | string | "What is your name?" | Question (max length: 256) |
| answer | string | "Lucy" | Answer to the question (max length: 256) |
Response
| Name | Type | Example | Description |
|---|---|---|---|
| code | int | 0 | Error code |
| msg | string | "success" | Error description |
Request Example
{
"enable": true,
"password": "Qaz123456",
"questions": [{
"question": "What is your name?",
"answer": "Zhang San"
},
{
"question": "When is your spouse's birthday?",
"answer": "1949-10-01"
}
]
}
Response Example
{
"code": 0,
"msg": "success"
}