Menu
Update Mrt Ruleset
Update MRT Ruleset
PATCH
/organizations/{organizationId}/zones/{zoneId}/mrtrulesUse it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Update Mrt Ruleset action (under Zones (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{updateMrtRuleset.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"mrtHostname": "customer-react-projec-production.mobify-storefront.com",
"oldMrtHostname": "customer-react-projec-production.mobify-storefront.com",
"expressions": [
"(http.host eq \"dev-customer.salesforce.com\" and not ( http.request.uri.path matches \"^/path1/.*\" or http.request.uri.path matches \"^.*/path2/.*/products/.*\"))"
],
"descriptions": [
"Phased rollout rule for dev-customer.salesforce.com"
]
}
Response
Returns 200 with an object. Read it in later steps with {{updateMrtRuleset.response.data.<field>}}.
{
"data": {
"ruleset": {
"id": "12345678901234asdfasfasdf",
"name": "MRT Rules",
"lastUpdated": "2022-01-01T05:20:00Z",
"rules": []
}
}
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?