Set AP password
1. API Description
This API is used to set the password of the AP.
Request mode: POST [ip]/api/network/ap-passwd
Administrator Rights | Logged-in |
---|---|
Yes | Yes |
2. Input Parameters
Name | Required | Type | Description |
---|---|---|---|
iface | Yes | String | The network card name, wlan1 |
password | Yes | String | The password of the AP |
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
4. Example
Setting the password of the AP.
Input Example
{
"iface": "wlan1",
"password": "12345678"
}
Output Example
{
"status": 0
}
5. Error Code
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Status | Definition | Description |
---|---|---|
31 | MW_STATUS_NOT_PERMITTED | Not AP NIC or AP NIC is not enabled |