Appearance
Update Subscription
API Address:/v2/quecrule/{version}/openapi/subscribe/update
Request Method:POST
Request Data Type:application/json
Response Data Type:*/*
API Description:Update subscription
Request Example:
javascript
{
"msgTypes": [
1
],
"queueName": "testQueue",
"subscribeId": 6169,
"subscribeName": "subscribeName01"
}Request Parameters:
| Parameter Name | Parameter Description | Request Type | Required | Data Type | Schema |
|---|---|---|---|---|---|
| msgTypes | Message types Product/Device level subscription: Transparent transmission products support the following types: 1-Device online/offline events 2-Device and module status 3-Device uplink data 4-Device downlink data 5-Device command response 12-Device location original information 13-Device location information 14-Device binding change information 15-Device information change Thing model products support the following types: 1-Device online/offline events 2-Device and module status 5-Device command response 6-Thing model property information 7-Thing model event report-information 8-Thing model event report-alert 9-Thing model event report-fault 10-Thing model service call log 12-Device location original information 13-Device location information 14-Device binding change information 15-Device information change User level subscription: 101-Product information change 102-Device information change 103-Thing model publication information change SaaS user level subscription: 101-Product information change 102-Device information change 103-Thing model publication information change 104-Product authorization information End user domain level subscription: 201-End user add/delete/modify | false | array | integer | |
| queueName | Queue name | false | string | ||
| subscribeId | Subscription ID | true | integer(int64) | ||
| subscribeName | Subscription name, maximum length 128 characters, supports Chinese, uppercase and lowercase English characters (case-sensitive), numbers, underscores (_), hyphens (-), does not support slashes (/), spaces, or other characters | false | string | ||
| version | Current version, valid value:r1 | path | true | string |
Response Status:
| Status Code | Description | Schema |
|---|---|---|
| 200 | OK | ActionResultOfobject |
| 201 | Created | |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found | |
| 16002 | The queue name does not exist | |
| 16022 | The running subscription rule does not allow modification | |
| 50000 | Service exception | |
| 50004 | Parameter null or empty | |
| 50005 | Parameter check error | |
| 70060 | Permission Denied | |
| 91004 | Token incorrect | |
| 91005 | Doesn't have permission |
Response Parameters:
| Parameter Name | Parameter Description | Type | Schema |
|---|---|---|---|
| code | Return code | integer(int32) | integer(int32) |
| data | Object | object | |
| msg | Prompt message | string | |
| pageNum | Current page number | integer(int32) | integer(int32) |
| pageSize | Items per page | integer(int32) | integer(int32) |
| pages | Total pages | integer(int32) | integer(int32) |
| total | Total count | integer(int32) | integer(int32) |
Response Example:
javascript
{
"code": 200,
"msg": ""
}