# Resin Supervisor HTTP API Device State Updates

**URL:** <https://forums.balena.io/t/resin-supervisor-http-api-device-state-updates/3057>\
**Category:** Product support\
**Created:** [May 1, 2018, 6:15pm UTC](https://forums.balena.io/t/resin-supervisor-http-api-device-state-updates/3057 "2018-05-01T18:15:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamp](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@adamp](https://forums.balena.io/u/adamp)\
**Post date:** [May 1, 2018, 6:15pm UTC](https://forums.balena.io/t/resin-supervisor-http-api-device-state-updates/3057/1 "2018-05-01T18:15:32Z")

</div>

I switched my application to use multi-container and everything is working quite well.  
Once issue I face is determining when an update has finished downloading so I can release the update lock and restart the services.

Previously, I would locally on the device perform a GET /v1/device to the SuperVisor’s HTTP API and could determine the download progress/downloaded. However, in multi-container this no longer seems to work.  
The download\_progress is always null. Furthermore update\_pending and update\_downloaded will jump between true and false while a download is still in flight. Is there a /v2 route or someway I can on the device determine when all service’s downloads are complete? I would prefer to do this locally on the device and not using the remote API.

---

<div class="post-metadata">

**Author:** ![pcarranzav](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pcarranzav/32/94_2.png) [@pcarranzav](https://forums.balena.io/u/pcarranzav)\
**Post date:** [June 25, 2018, 4:36pm UTC](https://forums.balena.io/t/resin-supervisor-http-api-device-state-updates/3057/24 "2018-06-25T16:36:51Z")

</div>

Hi @adamp! Sorry it took us a while to respond to this. Indeed the v1 API only works in single-container apps.  
We’re working on a v2 API: [https://github.com/resin-io/resin-supervisor/pull/652](https://github.com/resin-io/resin-supervisor/pull/652) - should be merged soon so it will probably be added in the next resinOS release.

---

<div class="post-metadata">

**Author:** ![lekkas](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/lekkas/32/78_2.png) [@lekkas](https://forums.balena.io/u/lekkas)\
**Post date:** [August 3, 2018, 10:14pm UTC](https://forums.balena.io/t/resin-supervisor-http-api-device-state-updates/3057/29 "2018-08-03T22:14:43Z")

</div>

Hi @adamp,

The latest resinOS 2.13.6+rev1 version for the Raspberry Pi 3 should have the fix for the issue you raised.
