/repos/{owner}/{repo}/rulesets/{ruleset_id}Replace a repository ruleset
Replaces a repository ruleset with the supplied configuration. Supply the ruleset properties you want to set, including its target, enforcement level, bypass actors, conditions, or rules. Use evaluate to test rules before enforcement; this option is available only with GitHub Enterprise.
Repository ruleset configuration. Supply the properties to set; each bypass actor must include an actor_type.
A 404 is returned when the owner path parameter and repo path parameter do not identify a repository, or the ruleset_id path parameter does not identify a ruleset in that repository. A 422 is returned when the ruleset configuration fails validation or the endpoint has been spammed; target must be branch, tag, or push, and enforcement must be disabled, active, or evaluate. A 500 indicates an internal error.