LED control for a positioning system

Hi, I want to program a usermode or something similar for a small project, but I need some help to get started.
I have connected a WS2812 LED-Strip with 90LEDs to the ESP32 and prepared it. All LEDs should be switched to red by default. Now I need an interface to which I can pass several values via HTTP post. For example 30, 50, 90, which are then switched to green.

What is the best way to realize this?
I found the following instructions in the WLED wiki Custom Features - WLED Project but there is probably also the possibility to store scripts under IP/edit…

greetings Chris

hi @Fl0 Welcome
WHY posting values
you can post the direct led setting command to the ip
API commands are accepted
TEST on your device
like

curl -X POST "http://10.10.2.14/json/state" -d '{"on":true, "bri":25, "seg":{"i":[
        0,15,[0,0,0],14,30,[0,255,0]]}}' -H "Content-Type: application/json"