Add to BlackList
Adds a single item to the blacklist.
Request
Method |
URL |
POST |
/smserver-default/sms.AddToBlackList |
RAW |
POST /smserver-default/sms.AddToBlackList HTTP/1.1 Cache-Control: no-cache Connection: Keep-Alive Pragma: no-cache Content-Type: application/json; charset=UTF-8 Accept: */* Authorization: Bearer XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
[ { "lIPNet" : "194.244.110.15/24", "lMinutes" : 15, "BLPerTemporary" : false } ] |
Explained |
Adds one item to the blacklist.
lIPNet: IP address or network to be blacklisted lMinutes: for how many minutes it should be blacklisted (applies only to Temporary items BLPerTemporary: true to add a Temporary item, false to add a Permanent item |
Response
Method |
URL |
RAW |
Accept-Encoding: synlz,gzip Content-Type: application/json; charset=UTF-8
{"result":[ { "Result" : 1 } ],"id":772674711} |
Explained |
Result: 1 = success any other value different from 1 = error
ResultMsg: a friendly message (success or error message) explaining what happened |