Is it possible to create and delete segments dynamicly with Jsonapi?

Hello

I m using wled strip to display animations and, sometime, diferente informations like temperature. I’ve just add a timer from google calendar event and i would like to define a part of the strip for this timer count down. the position and the size of this timer segment is not fixed and depend on the event in the google calendar. I use Json api to drive the count down but , is it possible to create the segment dynamicly et delete it at the end of the timer?

Best regards

HC

yes it should be, look at the API command a preset uses.

use: "seg":[...,{"stop":0},...] in your JSON.
You can use "id":N to specify exact segment to be deleted.