Skip to main content
POST
/
EVENTS.BUS_VAL_RULE.DELETED
{
  "rule": {
    "id": "val_rfuNf5qDB9xg",
    "name": "Business Validation Rule - 2/15/2024",
    "type": "expression",
    "rules": {
      "1": {
        "name": "customer.segment",
        "error": {
          "message": "Incorrect segment"
        },
        "rules": {},
        "conditions": {
          "$is": [
            "seg_n3vVcU5t0m3rs4rEPr3C1oU5"
          ]
        }
      },
      "2": {
        "name": "order.initial_amount",
        "rules": {},
        "conditions": {
          "$more_than": [
            9900
          ]
        }
      },
      "3": {
        "name": "order.items.count",
        "rules": {},
        "conditions": {
          "$more_than": [
            3
          ]
        }
      },
      "4": {
        "name": "order.items.price_each",
        "rules": {},
        "conditions": {
          "$more_than": [
            500
          ]
        }
      },
      "logic": " 1 AND 2 AND (  3 AND 4 )"
    },
    "object": "validation_rules",
    "created_at": "2024-02-15T11:04:01.856Z",
    "updated_at": "2024-02-15T11:06:04.849Z",
    "context_type": "campaign.promotion",
    "applicable_to": {
      "excluded": [],
      "included": [],
      "included_all": false
    }
  }
}

Response

200 - application/json

Indicates that a validation rule has been deleted.

Event data object schema for bus_val_rule.deleted.

rule
object

This is an object representing a request validation rule. This is an object representing a response validation rule.

deleted_at
string<date-time>

Timestamp representing the date and time when the validation rule was deleted in the ISO 8601 format.

Example:

"2024-01-01T11:11:11.111Z"

I