Set launching scene

1. API Description

This API is used to set the current landing scene.

Request mode:

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

2. Input Parameters

Name Required Type Description
launchScene Yes Int Landing scene ID, which can be obtained via Get landing scene list.

3. Output Parameters

Name Type Description
status Int Status code

4. Example

Enabling the landing scene with ID 21.

Input Example
{
    "launchScene":21
}
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
49 MW_STATUS_INVALID_DATA The parameters are missing or incorrect

results matching ""

    No results matching ""