DisableScene

Updated at:

You can call this operation to disable a specific scene interaction rule.

Request syntax

POST /2020-04-30/scenes/Scene/disable HTTP/1.1
Cookie: Cookie
Important 2020-04-30 is the version number of the edge OpenAPI. This value cannot be changed.

Request parameters

ParameterTypeRequiredDescription
SceneStringYesThe ID of the interaction rule. Call the ListScenes operation to obtain the interaction rule ID.
CookieStringYesThe authentication cookie. Call the CreateAuthCookie operation to create the cookie.

Response syntax

HTTP/1.1 StatusCode
Content-Type: application/json

Response parameters

Parameter NameTypeDescription
StatusCodeNumberThe HTTP status code. A value of 200 indicates that the request is successful. Other values indicate that the request failed. For more information, see Status codes.

Complete example

$ curl -i -b token.cookie -k -X POST https://127.0.0.1:9999/2020-04-30/scenes/d14122632aaf4d1d8e325963****9528/disable 

HTTP/1.1 200 OK
Server: openresty/1.13.6.2
Date: Thu, 16 Apr 2020 01:51:08 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive