Modify a malware policyput https://{hostname}/appsec/v1/configs/{configId}/versions/{versionNumber}/malware-policies/{malwarePolicyId}All products Update details for a malware policy.Path ParamsconfigIdint64requiredA unique identifier for each configuration.versionNumberintegerrequiredA unique identifier for each version of a configuration.malwarePolicyIdintegerrequiredA unique identifier for each malware 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 ParamsallowListIdstringThe ID of a client list containing file hashes of specific files to allow.blockListIdstringThe ID of a client list containing file hashes of specific files to block.contentTypesarray of objectsThe content types and encodings to match.contentTypesADD objectdescriptionstringDescriptive text you provide about a policy.hostnamesarray of stringsrequiredThe hostnames to match. This is where you want the malware detections to focus.hostnames*ADD stringlogFilenamebooleanDefaults to falseWhether to log the name of the file that triggered an alert or deny action.truetruefalsenamestringrequiredThe name you assign to a malware policy.pathsarray of stringsrequiredThe paths to match. You can use the ? and * wildcards anywhere in a path.paths*ADD stringHeadersacceptstringenumDefaults to application/jsonGenerated from available response content typesapplication/jsonapplication/problem+jsonAllowed:application/jsonapplication/problem+jsonResponses 200Successfully updated the malware policy. 400Bad request. Invalid request body or URL parameter input. 403Forbidden. You don't have access to this malware policy. 404Not found. The security configuration version or malware policy wasn't found.Updated about 1 month ago