Logo
API_DOC API Documentation

Modify a rate policy

PUT https://{{host}}/appsec/v1/configs/{{configId}}/versions/{{versionNumber}}/rate-policies/{{ratePolicyId}}

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X PUT 'https://host/appsec/v1/configs/configId/versions/versionNumber/rate-policies/ratePolicyId' -H 'Content-Type: application/json' -d '{"id":2234,"matchType":"path","type":"WAF","name":"Test_Paths 2","description":"AFW Test Extensions","averageThreshold":5,"burstThreshold":10,"clientIdentifier":"ip","useXForwardForHeaders":true,"requestType":"ClientRequest","sameActionOnIpv6":false,"path":{"positiveMatch":true,"values":["/login/","/path/"]},"pathMatchType":"Custom","pathUriPositiveMatch":true,"fileExtensions":{"positiveMatch":false,"values":["3g2","3gp","aif","aiff","au","avi","bin","bmp","cab"]},"hostnames":["www.ludin.org"],"additionalMatchOptions":[{"positiveMatch":true,"type":"IpAddressCondition","values":["198.129.76.40"]},{"positiveMatch":true,"type":"RequestMethodCondition","values":["GET"]}],"queryParameters":[{"name":"productId","values":["BUB_12","SUSH_11"],"positiveMatch":true,"valueInRange":false}]}'

ENDPOINTS