Publishes a rule.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
PUT /v2/openapi/instances/{instanceId}/rules/{ruleId}/actions/publish
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ruleId | string | Yes | The rule ID. | 98493A14-D619-4E88-9F8D-108939817F9F |
ruleType | string | Yes | The type of the rule. Example: selection and operation. | selection |
sceneId | string | Yes | The scene ID. | test |
instanceId | string | Yes | The instance ID. | airec-cn-o400whm78004 |
Response parameters
Examples
Sample success responses
JSON
format
{
"result": {
"ruleId": "98493A14-D619-4E88-9F8D-108939817F9F"
},
"code": "InternalServerError",
"requestId": "8F81A922-6C81-46D6-B78C-CC35E16B1691",
"message": "An internal server error occurred"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history