Is it possible to program a downlink payload structure using esp32?

setup: My HELTEC LORA 32 V3 is connected to my gateway through Over The Air Activation. My question is how do I write a code for programming the downlink?
For example some applications I want to do is performing a soft reset and change the data transmit interval.

I would use Geney as the editor and an appropriate tool chain.

is it not possible on arduino ide?
I was able to get my uplink programme to work, is it not the same for the downlink payload?