Play a radio url via curl?

It just needs to be valid JSON.

volumio@volumio:~$ curl -i --header "Content-Type: application/json" localhost:3000/api/v1/replaceAndPlay --data '{
  "service": "webradio",
  "type": "webradio",
  "title": "Nova%20La%20Nuit",
  "uri": "http://nova-ln.ice.infomaniak.ch/nova-ln-128",
  "albumart": "https://www.nova.fr/sites/default/files/2020-06/Nova%20la%20Nuit_1.jpg"
}'
HTTP/1.1 200 OK
X-Powered-By: Express
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,PUT,POST,DELETE,OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization, Content-Length, X-Requested-With
Content-Type: application/json; charset=utf-8
Content-Length: 22
ETag: W/"16-jY45PQN+HurxTHjG3dOzCLMmswA"
Vary: Accept-Encoding
Date: Wed, 26 Aug 2020 14:53:01 GMT
Connection: keep-alive

{"response":"success"}volumio@volumio:~$
2 Likes