All Products
Search
Document Center

ListRuleConditions

Last Updated: Jan 15, 2021

Description

Queries item selection rules of an instance.

Method

GET

URI

openapi/instances/{instanceId}/rule-conditions

Request parameters

Parameter Type Required Description
instanceId String Yes The ID of the instance.

Response parameters

Parameter Type Description
RequestId String The ID of the request.
Result List The list of rules.

Examples

Sample requests

GET /openapi/instances/{airec-xxxx}/rule-conditions

Sample responses

JSON format

{
    "Result":[
        {
            "SelectType":"QUERY_ITEM_TYPE",
            "SelectionOperation":"QUERY_VALUE_IN",
            "SelectValue":"[\"image\",\"article\",\"video\",\"shortvideo\",\"item\",\"recipe\",\"audio\"]"
        },
        {
            "SelectType":"QUERY_CATEGORY",
            "SelectionOperation":"QUERY_VALUE_IN",
            "SelectValue":"xxx"
        },
        {
            "SelectType":"QUERY_PUB_TIME",
            "SelectionOperation":"OPERATOR_EQUAL,OPERATOR_LOWER",
            "SelectValue":"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"
}