All Products
Search
Document Center

PublishRule

Last Updated: Jan 15, 2021

Description

Publishes a rule.

Method

PUT

URI

openapi/instances/{instanceId}/rules/{ruleId}/actions/publish

Request parameters

Parameter

Type

Required

Description

ruleType

String

Yes

Valid values: selection and opertaion.

sceneId

String

Yes

The ID of the scene.

Examples

Sample requests

PUT openapi/instances/{instanceId}/rules/{ruleId}/actions/publish?ruleType=xxx&sceneId=xxx

Sample responses

JSON format

// Item selection rule
{
    "Result":{
        "RuleId":"xxx"
    },
    "RequestId":"76E2C51D-A2D7-4775-9FD8-2AB84B2A0CEF",

}

Sample error responses

JSON format

{
    "Code": "InstanceNotFound",
    "Message": "The specified instance does not exist. Check the instanceId please.",
    "RequestId": "829F38F6-E2D6-4109-90A6-888160BD16C2"
}