+- **`triggerBroadcast` now treats `data` and `recipients` as optional**, matching the documented API. Calling with only a broadcast id no longer throws a `TypeError`, and empty `data` / `recipients` objects are omitted from the request payload instead of producing a 422 (`empty recipients filter is not valid`) from the API — so `api.triggerBroadcast(id)` sends the broadcast to its configured recipients. The parameters are positional: to pass `recipients` without `data`, use `triggerBroadcast(id, undefined, recipients)`. ([#220](https://github.com/customerio/customerio-node/pull/220))
0 commit comments