Queries preview results.
Operation description
We recommend that you do not call an API operation to manage scenes. We recommend that you go to the Scenario Building page in the Artificial Intelligence Recommendation (AIRec) console to manage scenes.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /v2/openapi/instances/{instanceId}/scenes/{sceneId}/items
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
instanceId | string | Yes | GET openapi/instances/{instanceId}/scenes/{sceneId}/items?selectionRuleId=xxx&operrationRuleId=xxx | airec-cn-o400whm78004 |
sceneId | string | Yes | testid | |
operationRuleId | string | No | 1 | |
selectionRuleId | string | No | The instance ID. | 1 |
page | integer | No | The scene ID. | 1 |
size | integer | No | The ID of the operation rule. | 10 |
previewType | string | No | The ID of the item selection rule. | PREVIEW_ITEM |
queryCount | integer | No | The number of the page to return. Default value: 1. | 20 |
Response parameters
Examples
Sample success responses
JSON
format
{
"result": {
"total": {
"totalCount": 1000,
"sceneWeightItem": 1000,
"sceneRecommendItem": 1000,
"weightItem": 1000,
"instanceRecommendItem": 1000
},
"detail": [
{
"title": "title",
"categoryPath": "12_34",
"itemId": "123",
"itemType": "video",
"status": "1",
"brandId": "123",
"shopId": "123",
"pubTime": "1612687809",
"channel": "The store ID.\n",
"duration": "300",
"author": "zhangsan",
"expireTime": "1612687809"
}
]
},
"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