Request
Body Params  application/json
{
    "channel_id": 0,
    "rule_id": "string",
    "rule_name": "string",
    "description": "string",
    "filters": [
        [
            {
                "key": "title",
                "oper": "IN",
                "vals": [
                    "string"
                ]
            }
        ]
    ],
    "time_filter": {
        "start_time": 0,
        "end_time": 0
    },
    "time_filters": [
        {
            "start": "string",
            "end": "string",
            "repeat": [
                0
            ],
            "cal_id": "string",
            "is_off": true
        }
    ],
    "is_directly_discard": true
}
Request Code Samples
curl --location --request POST 'http://prod-cn.your-api-server.com/channel/silence/rule/update' \
--header 'Content-Type: application/json' \
--data-raw '{
    "channel_id": 0,
    "rule_id": "string",
    "rule_name": "string",
    "description": "string",
    "filters": [
        [
            {
                "key": "title",
                "oper": "IN",
                "vals": [
                    "string"
                ]
            }
        ]
    ],
    "time_filter": {
        "start_time": 0,
        "end_time": 0
    },
    "time_filters": [
        {
            "start": "string",
            "end": "string",
            "repeat": [
                0
            ],
            "cal_id": "string",
            "is_off": true
        }
    ],
    "is_directly_discard": true
}'
Responses
application/json {
    "error": {
        "code": "InvalidParameter",
        "message": "string"
    },
    "data": {
        "rule_id": "string",
        "rule_name": "string"
    }
}
Modified at 2025-01-22 10:14:38