Appearance
Query Scene Details
Interface Address:/v2/cep/enduserapi/selectSceneDetail
Request Method:GET
Request Data Type:application/x-www-form-urlencoded
Response Data Type:*/*
Interface Description:Query Scene Details
Request Parameters:
| Parameter Name | Parameter Description | Request Type | Required | Data Type | schema |
|---|---|---|---|---|---|
| sceneId | Scene ID | query | true | string | |
| Authorization | header | false | string | ||
| fid | Family ID, required when home mode is enabled, otherwise not | query | false | string |
Response Status:
| Status Code | Description | schema |
|---|---|---|
| 200 | OK | ApiResult«Scene Param» |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response Parameters:
| Parameter Name | Parameter Description | Type | schema |
|---|---|---|---|
| code | integer(int32) | integer(int32) | |
| data | Scene Param Res | Scene Param Res | |
| fid | Family ID | string | |
| isCommon | Is common | boolean | |
| sceneInfo | Scene information | Scene Info | Scene Info |
| icon | Scene icon | string | |
| id | Scene primary key ID | integer | |
| metaDataList | Linkage data | array | Linkage Data |
| actionList | Execute actions | array | Execute Action |
| actionId | Execute action ID | integer | |
| code | Thing model identifier | string | |
| dataType | Thing model data type | string | |
| id | Thing model function ID | integer | |
| name | Thing model function name | string | |
| subName | string | ||
| subType | Read/write type | string | |
| type | Thing model function type | string | |
| unit | Thing model unit | string | |
| value | Thing model value | object | |
| deviceKey | Device/Group ID | string | |
| deviceName | Device name/Group name | string | |
| deviceType | Device type, 1: Normal device, 2: Group | integer | |
| logoImage | Scene LOGO | string | |
| productKey | Product KEY | string | |
| name | Scene name | string | |
| sceneId | Scene ID | string | |
| uid | End-user ID | string | |
| extMsg | string | ||
| msg | string |
Response Example:
javascript
{
"code": 0,
"data": {
"fid": "",
"isCommon": true,
"sceneInfo": {
"icon": "",
"id": 0,
"metaDataList": [
{
"actionList": [
{
"actionId": 0,
"code": "",
"dataType": "",
"id": 0,
"name": "",
"subName": "",
"subType": "",
"type": "",
"unit": "",
"value": {}
}
],
"deviceKey": "",
"deviceName": "",
"deviceType": 0,
"logoImage": "",
"productKey": ""
}
],
"name": "",
"sceneId": "",
"uid": ""
}
},
"extMsg": "",
"msg": ""
}