open-balena-api icon indicating copy to clipboard operation
open-balena-api copied to clipboard

Patching should_be_managed_by__supervisor_release to null returns 500

Open 20k-ultra opened this issue 3 years ago • 3 comments

The following request produces a 500:

curl 'https://api.balena-cloud.com/v6/device?$filter=uuid%20eq%20%<uuid>%27' -X PATCH \ 
-H 'authorization: Bearer <token>' \
-H 'content-type: application/json' \
--data-raw '{"should_be_managed_by__supervisor_release":null}'

20k-ultra avatar Mar 30 '21 17:03 20k-ultra

I understand setting this to null may not be allowed but I think the 500 caused was not intended.

20k-ultra avatar Mar 30 '21 17:03 20k-ultra

curl 'https://api.balena-cloud.com/v6/device?$filter=uuid%20eq%20%<uuid>%27' -X PATCH \ 
-H 'authorization: Bearer <token>' \
-H 'content-type: application/json' \
--data-raw '{"should_be_managed_by__release":null}'

does not throw 500 and works..the difference being that I am nulling should_be_managed_by__release rather then should_be_managed_by__supervisor_release

20k-ultra avatar Apr 05 '21 16:04 20k-ultra

[zoobot] This has attached https://jel.ly.fish/1b02413f-c75a-44e9-9fe9-783a6068ba90

jellyfish-bot avatar Sep 30 '22 21:09 jellyfish-bot