younifyd
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

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Update Waf Managed Rule In Ruleset action (under Zones (Data API)).
  3. Fill in the fields below, then reference the result from later steps as {{updateWafManagedRuleInRuleset.response.data}}.

Request

Path parameters

zoneIdstringrequired
rulesetIdstringrequired
ruleIdstringrequired
organizationIdstringrequired

An identifier for the organization the request is being made by

Request body

Enter the body as JSON in the step's Body field.

actionstring

The action applied by the WAF managed rule.

enabledboolean

Whether or not the WAF managed rule is enabled.

json
{
  "action": "block",
  "enabled": true
}

Response

Returns 200 with an object. Read it in later steps with {{updateWafManagedRuleInRuleset.response.data.<field>}}.

dataobject

A WAF managed rule.

ruleIdstringrequired

The ID of the WAF managed rule.

actionstringrequired

The action applied by the WAF managed rule.

scoreinteger

The score of the WAF managed rule. Only applicable for the OWASP Managed Ruleset.

categoriesarray<string>required

A list of categories describing the function of the WAF managed rule.

descriptionstringrequired

The description of the WAF managed rule.

lastUpdatedstring (date-time)required

Date when the WAF managed rule was last updated.

enabledbooleanrequired

Whether or not the WAF managed rule is enabled.

json
{
  "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.

Update Waf Managed Rule In Ruleset — Salesforce Commerce Cloud — Documentation