I am trying to use the Resin API to set the build for a specific device. I’m following the example shown on this page. My script looks as follows:
curl -X PATCH "https://api.resin.io/v4/device(<ID>)" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <AUTH" \
--data '{
"should_be_running_release": "<BUILD ID>"
}'
Whenever I make the request, I get Internal Server Error.
This error doesn’t help me figure out what’s going wrong, and after trying many different slight changes I don’t have a clue. Any advice?