Create a routing rule

The condition tree is validated on write; a malformed one is rejected rather than stored as a rule that silently never matches.

post/v1/endpoints/{id}/rules

Request

  • Base URL: https://webhook-studio.com
  • URL: https://webhook-studio.com/v1/endpoints/{id}/rules
  • Auth: HTTP bearer

Request body

namestring required
condition_treeobject required

A condition group { op: "AND"|"OR", children: [...] } or a leaf { field, operator, value? }, nested arbitrarily. field is "body.<dot.path>", "header.<name>" or "meta.<key>". operator is equals|not_equals|contains|exists|regex; all but exists require value. An empty AND group matches every event.

destination_idsstring[] required
activeboolean

Response

Created

Changes

No recorded changes to this operation across all 1 revision of this API.