As mentioned in the topic
Grafana version: 9.0.6
But when I create same rule through UI, it can be work.
So I checked the database of grafana
The top row is created through the UI, and the bottom row is created through the API.
I’m sure I added Dashboard UID and Panel Id when I created them.
Can you please tell me why UI and API behave differently?