Menu
Update Waf Managed Rule In Ruleset
Update WAF Managed Rule in Ruleset
PATCH
/organizations/{organizationId}/zones/{zoneId}/firewall-managed/rulesets/{rulesetId}/rules/{ruleId}Use it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Update Waf Managed Rule In Ruleset action (under Zones (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{updateWafManagedRuleInRuleset.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"action": "block",
"enabled": true
}
Response
Returns 200 with an object. Read it in later steps with {{updateWafManagedRuleInRuleset.response.data.<field>}}.
{
"data": {
"ruleId": "5de7edfa648c4d6891dc3e7f84534ffa",
"action": "block",
"score": 5,
"categories": [
"broken-access-control",
"wordpress"
],
"description": "Wordpress - Broken Access Control",
"lastUpdated": "2024-01-01T05:20:00Z",
"enabled": true
}
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?