Set screencast security authentication mode
1. API Description
This API is used to set screencast security authentication mode.
Request mode:
- V2.6.0 and above: POST [ip]/mwapi/V2.0/general/set-mirroring-passcode
- V2.5.0 and below: POST [ip]/mwapi/set-mirroring-passcode
| Administrator Rights | Logged-in | 
|---|---|
| No | Yes | 
2. Input Parameters
| Name | Required | Type | Description | 
|---|---|---|---|
| mirroringVerificationMode | Yes | Int | Screencast security authentication mode 0: None; 1: Password; 2: Onscreen Code | 
| mirroringPasscode | No | String | Password for screencast security authentication, 4 digits, only valid when mirroringVerificationMode is set to 1 | 
3. Output Parameters
| Name | Type | Description | 
|---|---|---|
| status | Int | Status code | 
| message | String | Status description | 
4. Example
Setting the screencast security authentication mode to password, and setting the password to 1234.
Input Example
{
    "mirroringVerificationMode":1,
    "mirroringPasscode":"1234"
}
Output Example
{
    "message": "success",
    "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 | 
|---|---|---|
| 49 | MW_STATUS_INVALID_DATA | The parameters are missing or incorrect |