Don't reboot device with supervisor

I try to reboot my device remotely, for this I did not mention the REBOOT method in the documentation

curl -X POST --header "Content-Type:application/json" \
    --header "Authorization: Bearer <auth token>" \
    --data '{"uuid": <uuid>}' \

I substituted the necessary data into it, namely the token and uuid.
But no matter what I do, I always get a 400 error.

Perhaps you can tell me what I’m doing wrong.

Hello @wikipedia55 could you please tell us more information about the device you are using, the OS version and the supervisor version? Is the device online?


Hello @mpous, thanks for answering.
BalenaOS 2.72.0+rev1. And supervisor version: 12.3.5.
Yes. device is online.


Thanks for the details. Are you able to reboot via the application container using curl i.e. curl -X POST --header "Content-Type:application/json" \ "$BALENA_SUPERVISOR_ADDRESS/v1/reboot?apikey=$BALENA_SUPERVISOR_API_KEY"

Also, with the 400 what is the exact error you receive? And is the --data field formatted as proper JSON?

Hi @wikipedia55!

Just checking whether you’ve had a chance to follow up on Nitish’s questions?

Thank you, and kind regards