Change device button binding mode

1. API Description

This API is used to change the binding mode of device buttons.

Request mode:

  • V2.6.0 and above: POST [ip]/mwapi/V2.0/presentation/update-button-mode
  • V2.5.0 and below: POST [ip]/mwapi/update-button-mode
Administrator Rights Logged-in
No Yes

2. Input Parameters

Name Required Type Description
showId Yes Int Presentation ID, which can be obtained via Get presentation list
modeOfButton Yes Int Button binding mode
0: Default. Buttons are bound to pre-built scenes.
1: Custom. Buttons are bound to scenes specified by the user. 2: Auto. Buttons are bound to the first five created scenes.

3. Output Parameters

Name Type Description
status Int Status code
message String Status description

4. Example

Changing the button binding mode of presentation 1 to custom.

Input Example
{
    "modeOfButton":1,
    "showId":1
}
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

results matching ""

    No results matching ""