SOLVED: WLED Curl with Playlist ID

How do I add this as an automation?

curl -X POST "http://[WLED-IP]/json/state" -d '{"on":"t","v":true}' -H "Content-Type: application/json"

https://kno.wled.ge/interfaces/json-api/

Currently using this:

    automation nov_colors:
      - alias: "WLED Nov"
    trigger:
      platform: state
      entity_id: calendar.wled
      to: "on"
    action:
      - service: rest_command.wled_api
        data:
          url: "http://[IP]/win&T=1&A=255&FX=65&FP=39"

    rest_command:
      wled_api:
        url: "{{ url }}"
        method: post

But this unfortunately doesn’t work with selecting a playlist to use.

EDIT: Didn’t know that playlists were technically “enhanced” presets, so I was able to use the same url with PL=. In other words, didn’t have to use the json api.