Delete Alert Type¶
Delete an alert type. It is required to verify whether the alert type to be deleted is used by any other rules; if yes, no deletion is allowed.
Request Format¶
POST https://{apigw-address}/event-service/v2.1/alert-types?action=delete
Request Parameters (URI)¶
Name |
Location (Path/Query) |
Required or Not |
Data Type |
Description |
---|---|---|---|---|
orgId |
Query |
true |
String |
Organization ID which the asset belongs to. How to get orgId>> |
alertTypeId |
Query |
true |
String |
Alert type ID |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
null |
Null |
Sample¶
Request Sample¶
POST https://{apigw-address}/event-service/v2.1/alert-types?action=delete&orgId=1c499110e8800000&alertTypeId=planetTemperature
Return Sample¶
{
"code": 0,
"msg": "OK",
"requestId": "4873095e-621d-4cfd-bc2c-edb520f574ea",
"data": ""
}