Adding an alert to the panel via API

Hi, I’m adding alerts to grafana via API, but for a few days now I can’t find a way to add an alert to a specific panel or even find the “panelId” ( I found that panelId exist https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/ regarding to “AlertRuleExport” segment.

I’m using a basic template from the documentation supplemented with datasource uid, folder uid, etc. alerts are created as I want but I struggle to add them to specific panel. I cannot find panelId as well. I tried to find it by using ***/api/search, as a result I get only folder uid/id and dashboards uid/id