Hi @Luti
yes sure you can use NiFi toolkit for this.
nifi pg-set-var -pgid b1f05b41-017f-1000-0000-00005ac6776e --varValue "Test2" --varName "MyVar1"
If the variable does not exist, it will create. If the variable exists, you will update the value.
![janisax_0-1648210960200.png janisax_0-1648210960200.png](https://community.cloudera.com/t5/image/serverpage/image-id/34011iF17D55E444E51482/image-size/medium?v=v2&px=400)
I hope this will help you.