# How to update balena supervisor via API?

**URL:** <https://forums.balena.io/t/how-to-update-balena-supervisor-via-api/350264>\
**Category:** Product support\
**Tags:** support\
**Created:** [November 24, 2021, 5:31pm UTC](https://forums.balena.io/t/how-to-update-balena-supervisor-via-api/350264 "2021-11-24T17:31:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiagodavi](https://avatars.discourse-cdn.com/v4/letter/t/839c29/32.png) [@tiagodavi](https://forums.balena.io/u/tiagodavi)\
**Post date:** [November 24, 2021, 5:31pm UTC](https://forums.balena.io/t/how-to-update-balena-supervisor-via-api/350264/1 "2021-11-24T17:31:08Z")

</div>

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

> **[Interacting with the balena Supervisor - Balena Documentation](https://www.balena.io/docs/reference/supervisor/supervisor-api/#post-v1update)**

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.

---

<div class="post-metadata">

**Author:** ![klutchell](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/klutchell/32/861_2.png) [@klutchell](https://forums.balena.io/u/klutchell)\
**Post date:** [December 23, 2021, 4:19pm UTC](https://forums.balena.io/t/how-to-update-balena-supervisor-via-api/350264/2 "2021-12-23T16:19:21Z")

</div>

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:

> **[Balena Node.js SDK - Balena Documentation](https://www.balena.io/docs/reference/sdk/node-sdk/#balena.models.device.setSupervisorRelease)**

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.
