Configuration settingsShared resources: Malware policiesCreate a malware policyCopy Pagepost https://{hostname}/appsec/v1/configs/{configId}/versions/{versionNumber}/malware-policiesAll products Create a new malware policy for a security configuration version.Path ParamsconfigIdint64requiredA unique identifier for each configuration.versionNumberintegerrequiredA unique identifier for each version of a configuration.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 ParamsContains details about a malware policy.allowListIdstringThe 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 201Successfully created a malware policy. 400Bad request. Invalid request body or URL parameter input. 403Forbidden. You don't have access to malware policies in this security configuration. 404Not found. Security configuration version wasn't found.Updated 3 months ago Modify selected hostnamesList malware policiesDid this page help you?YesNo