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>}' \
    "https://api.balena-cloud.com/supervisor/v1/reboot"

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?

Thanks!

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

Hi,

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
Alida