201Successful Response
Schema: SuccessEnvelope_WidgetAlertResponse_
successbooleanmessagestringcodestringdataWidgetAlertResponse
/api/v1/dashboards/{dashboard_id}/widgets/{widget_id}/alertCreate a threshold alert rule bound to a metric widget. The rule is evaluated against the widget's stored snapshot — it never re-executes the widget's source tool, so the alert is exactly as fresh as the dashboard itself. Returns 400 if the widget is not a metric widget or if value_path does not resolve to a number in the current snapshot.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
dashboard_idstringrequiredwidget_idstringrequiredSchema: CreateWidgetAlertRequest
namestringthreshold_valueintegerrequiredthreshold_directionstringrequiredOne of: above, below
value_pathstringchannelsarray · stringcheck_frequencystringOne of: hourly, daily, weekly
cooldown_hoursintegerdescriptionstringslack_channelstringSchema: SuccessEnvelope_WidgetAlertResponse_
successbooleanmessagestringcodestringdataWidgetAlertResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject