Menu
Update Rate Limiting Rule
Update a specific rate limiting rule.
PATCH
/organizations/{organizationId}/zones/{zoneId}/rate-limiting/rules/{ruleId}Use it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Update Rate Limiting Rule action (under Zones (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{updateRateLimitingRule.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"description": "Rate limit /path1.",
"expression": "(http.request.uri.path matches \"^/path1/.*\")",
"characteristics": [
"cf.unique_visitor_id"
],
"action": "block",
"period": 60,
"requestsPerPeriod": 50,
"mitigationTimeout": 600,
"countingExpression": "(http.request.uri.path matches \"^/path1/.*\" and http.response.code eq 400)",
"enabled": true,
"position": {
"before": "2c0fc9fa937b11eaa1b71c4d701ab86e",
"after": "2c0fc9fa937b11eaa1b71c4d701ab86e"
}
}
Response
Returns 200 with an object. Read it in later steps with {{updateRateLimitingRule.response.data.<field>}}.
{
"data": {
"ruleId": "2c0fc9fa937b11eaa1b71c4d701ab86e",
"description": "Rate limit /path1.",
"expression": "(http.request.uri.path matches \"^/path1/.*\")",
"characteristics": [
"cf.unique_visitor_id"
],
"action": "block",
"period": 60,
"requestsPerPeriod": 50,
"mitigationTimeout": 600,
"lastUpdated": "2022-01-01T05:20:00Z",
"enabled": true,
"countingExpression": "(http.request.uri.path matches \"^/path1/.*\" and http.response.code eq 400)"
}
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?