Edit rule (editrule)
Update an existing style guide rule.
Last updated
Was this helpful?
Update an existing style guide rule.
Update an existing style guide rule.
See HTTP API Overview.
cmd
string
Yes
style_guide
Command name.
action
string
Yes
editrule
Action name.
lang
string
No
common
Language scope that contains the rule (example: en_US or en).
rule
string
Yes
Rule ID to update. Use lang + rule to uniquely target it.
patterns
string[]
No
New patterns. Replaces the whole array.
suggestions
string[]
No
New suggestions. Replaces the whole array.
state
boolean
No
Enables/disables the rule.
context_include
string[]
No
New include context. Replaces the whole array.
context_exclude
string[]
No
New exclude context. Replaces the whole array.
description
string
No
New message.
Provide at least one updatable field.
You can’t choose a rule ID.
The rule ID is generated as a hash of patterns + context_include. If you update patterns or context_include, the rule will get a new ID.
Updates only the provided fields.
Returns the updated rule in result.
Updated single rule object with updated rule ID is returned.
See Response schema.
See:
Last updated
Was this helpful?
Was this helpful?
{
"cmd": "style_guide",
"action": "editrule",
"lang": "en_US",
"rule": "STYLE_5933619761905272220",
"state": false
}
