updateOrderOfCustomRules
Update the order of all existing custom rules. See [eCDN Custom Rules](https://developer.salesforce.com/docs/commerce/commerce-api/guide/cdn-zones-custom-rules.html).
Operation ID: updateOrderOfCustomRulesPATCH
https://{shortCode}.api.commercecloud.salesforce.com/cdn/zones/v1/organizations/{organizationId}/zones/{zoneId}/firewall-custom/rules
Request
curl "https://{shortCode}.api.commercecloud.salesforce.com/cdn/zones/v1/organizations/{organizationId}/zones/{zoneId}/firewall-custom/rules" \
-X PATCH \
-H "content-type: application/json" \
-d '{
"ruleIds": [
"ffffe61cf25e4ec49c34b029ff3060f7",
"2c0fc9fa937b11eaa1b71c4d701ab86e"
]
}'
Security
URI parameters
shortCode
string
Required
Default value:
shortCode
zoneId
string
Required
organizationId
string
Required
An identifier for the organization the request is being made by
Minimum characters:
1
Maximum characters:
32
f_ecom_zzxy_prd
Body
Media type:
application/json
{
"ruleIds": [
"ffffe61cf25e4ec49c34b029ff3060f7",
"2c0fc9fa937b11eaa1b71c4d701ab86e"
]
}
ruleIds
array of string
Required
An array of ruleIds representing the new order of custom rules.
[
null,
null
]
Responses
Successfully updated the order of existing custom rules as requested by the caller.
{
"data": [
{
"ruleId": "ffffe61cf25e4ec49c34b029ff3060f7",
"description": "Block traffic for malformed URL requests",
"expression": "(http.request.uri.path matches \"^/path1/.*\")",
"actions": [
"block"
],
"lastUpdated": "2022-12-14T21:25:22.329194Z",
"enabled": false
},
{
"ruleId": "2c0fc9fa937b11eaa1b71c4d701ab86e",
"description": "Skip user agent",
"expression": "(http.user_agent contains \"Client\")",
"actions": [
"skip_custom_rules, skip_waf"
],
"lastUpdated": "2022-12-14T21:30:34.263795Z",
"enabled": true
}
]
}
Body
Media type:
application/json
data
array
Required