reportAiMsgFeedback: Submit AI smart-alarm accuracy feedback
reportAiMsgFeedback: Submit AI smart-alarm accuracy feedback
What it does
Submit user feedback on AI smart alarm scene descriptions (for example aiCopyWriting) for one or more messages, marking each as accurate or inaccurate. Use alarmId from alarm list APIs or searchAiAlarmMessageByPage.
Request URL
POST https://openapi-[DataCenter].easy4ip.com/openapi/reportAiMsgFeedback
Minimum permission
Administrator or sub-account token. See Permission codes.
Request parameters
| Parameter name | Parameter type | Required or not | Parameter description |
|---|---|---|---|
| token | String | Yes | Administrator or sub-account accessToken |
| deviceId | String | Yes | Device serial number |
| channelId | String | Yes | Channel ID |
| productId | String | No | Thing-model product ID; required for IoT devices |
| msgList | Array | Yes | Feedback items Allowed values: Non-empty array. |
| msgList[].alarmId | String | Yes | Message ID |
| msgList[].feedbackResult | Integer | Yes | 0 inaccurate; 1 accurate |
Common request fields and signing: Signing conventions and Common request payload.
Sample input
{
"id": "9f05aa70-91fd-4d35-8b06-cd2ece55346b",
"system": {
"ver": "1.0",
"appId": "lcdxxxxxxxxx",
"sign": "xjhCQBoJ9hRDsCjyDcHjtDNzRZ3ZJezcawsfWeiaoxU=",
"time": 1603350704,
"nonce": "245db3c7-1689-4893-ac30-cbd7a9d8d153"
},
"params": {
"token": "<yourAccessToken>",
"deviceId": "TESTQWERXXXX",
"channelId": "0",
"msgList": [
{
"alarmId": "2312312312",
"feedbackResult": 1
}
]
}
}
Return data fields
No data payload.
Sample output
{
"result": {
"msg": "Success.",
"code": "0"
},
"id": "9f05aa70-91fd-4d35-8b06-cd2ece55346b"
}
Error codes
See Error codes and Capability errors.
Gateway and auth (SN / TK / OP)
| Code | Meaning | Next step |
|---|---|---|
SN1001 | Signature error | Check sign per Signature |
TK1002 | Token invalid or expired | Refresh accessToken |
OP1002 | Missing required parameter | Add required fields |
OP1003 | Invalid parameter | Match this page’s parameter table |
OP1009 | Permission denied | Check token and device bind/share grants |
OP1013 | Total call limit exceeded | Reduce call rate |
OP1014 | Daily per-interface limit exceeded | See Interface call limits |
DV1007 | Device offline | Wait until the device is online |
See Error codes · OP/SN/TK for the full catalog.
Sub-accounts (SUB)
| Code | Meaning | Next step |
|---|---|---|
SUB1001–SUB1002 | Sub-account lacks API permission | Update policy via addPolicy |
SUB1005 | Sub-account token expired | Refresh subAccountToken |
SUB1006 | No device grant for sub-account | Check Resource and device serial |
SUB1008 | Sub-account not bound to app | Create and bind the sub-account first |
See Error codes · SUB.
Alarms and messages (DV20xx)
| Code | Meaning | Next step |
|---|---|---|
DV2001 | Message not found | Verify alarm id |
DV2002 | Message query failed | Check time range and permissions |
Notes
Sub-account tokens need at least Permission Alarm and Resource cam:{deviceId}:{channelId}. See Permission codes.
Each alarmId must belong to an alarm visible under the given deviceId and channelId; otherwise the call may fail with a parameter or business error.
