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.