younifyd
Menu

Update Waf Group

Update the action or mode of a specific WAF group.

PUT/organizations/{organizationId}/zones/{zoneId}/waf/groups/{groupId}

Use it in a workflow

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

Request

Path parameters

groupIdstringrequired

WAF Group that contains the WAF rules.

zoneIdstringrequired
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.

groupIdstring
actionstring

The action to apply to WAF group

One ofblockchallengemonitordefault

modestringrequired

Mode of the waf rule - on vs off

One ofonoff

descriptionstring

Description of the WAF Group.

json
{
  "mode": "on",
  "groupId": "372e67954025e0ba6aaa6d586b9e0b60",
  "action": "block",
  "description": "Test WAF Group to protect against SQL injection"
}

Response

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

dataobject
groupIdstring
actionstring

The action to apply to WAF group

One ofblockchallengemonitordefault

modestringrequired

Mode of the waf rule - on vs off

One ofonoff

descriptionstring

Description of the WAF Group.

json
{
  "data": {
    "groupId": "372abe67954025e0ba6aaa6d586b9e0b",
    "zoneId": "example1-zone-Id",
    "action": "monitor",
    "mode": true,
    "description": "SQL injection protection"
  }
}

Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.

Update Waf Group — Salesforce Commerce Cloud — Documentation