Delete Message Rules¶
Delete message rules
Request Format¶
POST https://{apigw-address}/app-portal-service/v2.2/message-service/rule/delete
Request Parameters (Header)¶
Name |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
Authorization |
Optional |
String |
User identification |
Request Parameters (URI)¶
Name |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
orgId |
Mandatory |
String |
OU ID |
Request Parameters (Body)¶
Name |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
ruleIds |
Mandatory |
List |
The list of message rule IDs |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
Boolean |
True for deleted, false for failed to delete |
Error Codes¶
Error Code |
Description |
---|---|
31400 |
OU ID and message rule ID are required |
31404 |
OU or message rule does not exist |
Samples¶
Request Sample¶
url: https://{apigw-address}/app-portal-service/v2.2/message-service/rule/delete?orgId=your_org_id
method: POST
requestBody:
{
"ruleIds": ["your_rule_id_1", "your_rule_id_2"]
}
Return Sample¶
{
"code": 0,
"message": "OK",
"data": true
}