Authorization: Bearer ********************
{
"ruleId": "flwvhj2p",
"enabled": true,
"ruleName": "hp_torrent",
"subUrl": "https://raw.githubusercontent.com/PBH-BTN/BTN-Collected-Rules/main/hp_torrent.txt"
}
curl --location --request PUT 'http://127.0.0.1:9897/api/sub/rule' \
--header 'Content-Type: application/json' \
--data-raw '{
"ruleId": "flwvhj2p",
"enabled": true,
"ruleName": "hp_torrent",
"subUrl": "https://raw.githubusercontent.com/PBH-BTN/BTN-Collected-Rules/main/hp_torrent.txt"
}'
{"success":true,"message":"IP黑名单订阅规则已保存","data":null}