Set FTB status

1. API Description

This API is used to set the FTB status.

Request mode:

  • V2.6.0 and above: POST [ip]/mwapi/V2.0/scene/set-ftb-status
  • V2.5.0 and below: POST [ip]/mwapi/set-ftb-status
Administrator Rights Logged-in
No Yes

2. Input Parameters

Name Required Type Description
ftb Yes Int Whether to enable FTB
0: No; 1: Yes

3. Output Parameters

Name Type Description
status Int Status code
message String Status description

4. Example

Disabling FTB.

Input Example
{
    "ftb": 0
}
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
7 MW_STATUS_INVALID_ARG Missing required parameters
11 MW_STATUS_DEVICE_BUSY Scene editing mode, prohibited

results matching ""

    No results matching ""