How to update balena supervisor via API?

I would like to know how to update device’s supervisor version via API.

I ran the command from the supervisor API:

POST /v1/update

It returns 204 (no content) and works as expected, but the supervisor version keeps the same and nothing changes.

Hey @tiagodavi, that endpoint you found in the supervisor docs is to ask the API what the target state should be, but doesn’t actually update the supervisor itself.

We don’t currently offer a way to update the supervisor via the API alone, but it can be done via our SDK:

We do have architecture changes on the roadmap that will treat the supervisor more like any other app, but in the meantime the SDK is the way to go.