Update device build not working with API

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?

Hey @freako987, try with “should_be_running__release”. Note the double underscore before release.

Wow, I feel stupid! Can’t say I understand why it’s two, but it’s working now. Thanks!