All Products
Search
Document Center

:PublishRule

Last Updated:Mar 01, 2024

Publishes a rule.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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

ParameterTypeRequiredDescriptionExample
ruleIdstringYes

The rule ID.

98493A14-D619-4E88-9F8D-108939817F9F
ruleTypestringYes

The type of the rule. Example: selection and operation.

selection
sceneIdstringYes

The scene ID.

test
instanceIdstringYes

The instance ID.

airec-cn-o400whm78004

Response parameters

ParameterTypeDescriptionExample
object
resultobject

The returned result.

ruleIdstring

The rule ID.

98493A14-D619-4E88-9F8D-108939817F9F
codestring

The error code.

InternalServerError
requestIdstring

The request ID.

8F81A922-6C81-46D6-B78C-CC35E16B1691
messagestring

The error message.

An internal server error occurred

Examples

Sample success responses

JSONformat

{
  "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 timeSummary of changesOperation
No change history