Menu
Update Waf Rule
Update the action of a specific WAF rule.
PUT
/organizations/{organizationId}/zones/{zoneId}/waf/rules/{ruleId}Use it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Update Waf Rule action (under Zones (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{updateWafRule.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"action": "block",
"ruleId": "892e67954025e0ba6atefd586b9e58b3",
"groupId": "372e67954025e0ba6aaa6d586b9e0b60",
"defaultAction": "block",
"description": "Test WAF Rule to protect against SQL injection"
}
Response
Returns 200 with an object. Read it in later steps with {{updateWafRule.response.data.<field>}}.
{
"data": {
"ruleId": "892e67954025e0ba6atefd586b9e58b3",
"groupId": "372abe67954025e0ba6aaa6d586b9e0b",
"action": "monitor",
"defaultAction": "challenge",
"description": "SQL injection protection"
}
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?