Update Scanning Rule

PATCH {{baseUrl}}/api/v2/sensitive-data-scanner/config/rules/:rule_id

Update a scanning rule. The request body MUST NOT include a standardpattern relationship, as that relationship is non-editable. Trying to edit the regex attribute of a rule with a standardpattern relationship will also result in an error.

Request Body

{"data"=>{"attributes"=>{"description"=>"quis enim", "excluded_namespaces"=>["admin.name"], "included_keyword_configuration"=>{"keywords"=>["credit card", "cc"], "character_count"=>30}, "is_enabled"=>false, "name"=>"incididunt", "namespaces"=>["admin"], "pattern"=>"v", "priority"=>4, "tags"=>["elit dolor labore Excepteur deserunt", "incididunt mollit reprehenderit"], "text_replacement"=>{"number_of_chars"=>86464354, "replacement_string"=>"ipsum elit", "type"=>"none"}}, "id"=>"ex esse sunt eiusmod Excepteur", "relationships"=>{"group"=>{"data"=>{"id"=>"labore sed exercitation amet", "type"=>"sensitive_data_scanner_group"}}, "standard_pattern"=>{"data"=>{"id"=>"sed anim Lorem ut in", "type"=>"sensitive_data_scanner_standard_pattern"}}}, "type"=>"sensitive_data_scanner_rule"}, "meta"=>{"version"=>0}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"meta":{"version":0}}