Modify a URL protection policyput https://{hostname}/appsec/v1/configs/{configId}/versions/{versionNumber}/url-protections/{urlProtectionPolicyId}All products Updates the specified URL protection policy.Path ParamsconfigIdint64requiredA unique identifier for each configuration.versionNumberintegerrequiredA unique identifier for each version of a configuration.urlProtectionPolicyIdint64requiredA unique identifier for each URL protection policy.Query ParamsaccountSwitchKeystringFor customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.Body ParamsapiDefinitionsarray of objectsThe API endpoints to match on in incoming requests. This only applies to the api matchType.apiDefinitionsADD objectbypassConditionobjectExempts specific clients from being processed by the URL protection policy.bypassCondition objectcategoriesarrayThe traffic categories to perform load shedding on when the origin traffic rate exceeds the load shedding threshold. If intelligentLoadShedding is set to true, specify one or more categories.categoriesADD Client list category | Other categoriesconfigIdint64Uniquely identifies the security configuration.configVersionintegerThe security configuration version.descriptionstringA description of the rate policy.hostnamePathsarray of objectslength ≥ 1The hostname and path combinations to match on.hostnamePathsADD objectintelligentLoadSheddingbooleanrequiredEnable or disable intelligent load shedding. If enabled, traffic that matches the load shedding categories is eligible for shedding if the origin rate exceeds the load shedding threshold.truefalsenamestringrequiredThe rate policy's unique name.protectionTypestringenumIf matching on hostnamePaths, specify SINGLE to match on a hostname and path, or MULTIPLE to match on hostname and path combinations.MULTIPLESINGLEMULTIPLEAllowed:SINGLEMULTIPLErateThresholdintegerrequiredThe allowed hits per second during any five-second interval.sheddingThresholdHitsPerSecintegerSpecify the threshold value, in hits per second, after which traffic can be shed. The sheddingThresholdHitsPerSec value must be between 25%-90% of the rateThreshold value. If you enabled intelligentLoadShedding, this value is required.HeadersacceptstringenumDefaults to application/jsonGenerated from available response content typesapplication/jsonapplication/problem+jsonAllowed:application/jsonapplication/problem+jsonResponses 200Successfully updated URL protection policy. 400Bad request. Invalid request body or URL parameter input. 403Forbidden. You don't have access to URL protection policy in this security configuration. 404Not found. Security configuration version or URL protection policy wasn't found.Updated about 1 month ago