Modify a match targetCopy Pageput https://{hostname}/appsec/v1/configs/{configId}/versions/{versionNumber}/match-targets/{targetId}Kona Site Defender, App & API Protector with the Advanced Security module Updates details about the specified match target.Path ParamsconfigIdint64requiredA unique identifier for each configuration.versionNumberintegerrequiredA unique identifier for each version of a configuration.targetIdintegerrequiredA unique identifier for each match target.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 information about a match target.apisarray of objectsContains a list of objects containing an API endpoint ID and name. This field applies only to API match targets.apisADD objectbypassNetworkListsarray of objectsThe list of network list identifiers and names.bypassNetworkListsADD objectconfigIdintegerUniquely identifies the security configuration.configVersionintegerThe version of security configuration.defaultFilestringenumDefaults to NO_MATCHDescribes the rule to match on paths. Either NO_MATCH to not match on the default file, BASE_MATCH to match only requests for top-level hostnames ending in a trailing slash, or RECURSIVE_MATCH to match all requests for paths that end in a trailing slash.NO_MATCHNO_MATCHBASE_MATCHRECURSIVE_MATCHAllowed:NO_MATCHBASE_MATCHRECURSIVE_MATCHfileExtensionsarray of stringsContains a list of file extensions.fileExtensionsADD stringfilePathsarray of stringsContains a list of file paths.filePathsADD stringhostnamesarray of stringsContains a list of hostnames to protect.hostnamesADD stringisNegativeFileExtensionMatchbooleanDescribes whether the match target applies when a match is found in the specified fileExtensions or when a match isn't found.truetruefalseisNegativePathMatchbooleanDescribes whether the match target applies when a match is found in the specified paths or when a match isn't found.truefalsesecurityPolicyobjectrequiredThe security policy associated with the match target.securityPolicy objectsequenceintegerThe position in the sequence of match targets.targetIdintegerUniquely identifies the match target.typestringenumrequiredDescribes the type of match target, either website or api.websiteapiAllowed:websiteapiHeadersacceptstringenumDefaults to application/jsonGenerated from available response content typesapplication/jsonapplication/problem+jsonAllowed:application/jsonapplication/problem+jsonResponses 200Successfully updated match target. 400Bad request. Invalid request body or URL parameter input. 403Forbidden. You don't have access to match targets in this security configuration. 404Not found. Security configuration version or match target wasn't found.Updated about 2 months ago