Select dashboard variable value using an API call

I have a working setup with dashboard variables. With the dashboard variables I can select one or more “signals” that I want to see as graph in my panel.

Is it possible to select the “signals” through an API call ?

Reason I want this: I work in a SCADA program that manages all signals and adds the values to the database. From within the SCADA program I want to select a “signal” and use a context menu (right mouseclick) with a “Add to graph” option that will select the signal in a grafana panel.

Answer myself: Yes it is possible by adding them to the URL. Disadvantage is that the whole page reloads when changing the URL.