Delete scene
1. API Description
This API is used to delete scenes.
Request mode:
- V2.6.0 and above: POST [ip]/mwapi/V2.0/scene/delete-scene
- V2.5.0 and below: POST [ip]/mwapi/delete-scene
| Administrator Rights | Logged-in |
|---|---|
| No | Yes |
2. Input Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| sceneIds | Yes | Sting | Scene ID, multiple IDs separated by a comma. They can be obtained via Get scene list. |
| showId | Yes | Int | Presentation ID, which can be obtained via Get presentation list |
3. Output Parameters
| Name | Type | Description |
|---|---|---|
| status | Int | Status code |
| message | String | Status description |
4. Example
Deleting scene 100 in presentation 7.
Input Example
{
"sceneIds":"100",
"showId":7
}
Output Example
{
"status": 0,
"message": "success"
}
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 |
| 31 | MW_STATUS_NOT_PERMITTED | The App is in pairing mode. The operation is not permitted |
| 39 | MW_STATUS_MISMATCH | The scene does not exist |
| 48 | MW_STATUS_INFO_CHANGED | Operations on content not belonging to the current presentation are prohibited. |