All Products
Search
Document Center

DeleteScene

Last Updated: Mar 29, 2021

We recommend that you do not call an API operation to manage scenes. Go to the Scene Management page in the AIRec console to manage scenes. For more information, see Create a recommendation scene by configuring item selection rules.

Description

Deletes a scene.

Method

DELETE

URI

openapi/instances/{instanceId}/scenes/{sceneId}

Request parameters

Parameter

Type

Required

Description

instanceId

String

Yes

The ID of the instance.

sceneId

String

Yes

The ID of the scene.

Response parameters

Parameter

Type

Description

RequestId

String

The ID of the request.

Result

Map

The result that is returned.

└Scene

Scene

Details about the deleted scene.

Examples

Sample requests

DELETE openapi/instances/{instanceId}/scenes/{sceneId}

Sample success responses

JSON format

{
    "RequestId":"8F81A922-6C81-46D6-B78C-CC35E16B1691",
    "Result":{
    "InstanceId":"airec-yunchu-test",
    "SceneId":"1234",
    "Id":"901",
    "Type":"Scene",
    "Status":"",
    "GmtCreate":1587435971000,
    "GmtModified":1587435971000,
    "SceneMeta":{
        "Description":"this is a test scene",
        "SceneName":"aaa",
        "Metric":{
            "Weekly":123,
            "Daily":12334,
            "PvCtr":123
        }
    }
    }
}

Sample error responses

JSON format

{
  "Code":"InternalServerError",
    "Message":"An internal server error occurred.",
    "RequestId":"829F38F6-E2D6-4109-90A6-888160BD16C2"
}