I have been trying to figure out the sonos api over the past few days, but unfortuanetly have hit a road block. I have already gotten my tokens and room names and and favorites Id, but when I send the curl request to play a song I get the error described above.
Curl Code : curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer {TOKEN}" "https://api.ws.sonos.com/control/api/v1/groups/RINCON_48A6B88A5B14014XX:XXXXXXXXXX/favorites" --data @play.json
I keep the body in a .json file called play which contains the code:
{ "favoriteId":2, "playOnCompletion":true }
I have not been able to find any documentation on this issue online, so any and all help is very appreciated.