# Update offered to device, but only applied if accepted

**URL:** <https://forums.balena.io/t/update-offered-to-device-but-only-applied-if-accepted/3363>\
**Category:** Product support\
**Tags:** network\
**Created:** [June 22, 2018, 5:00am UTC](https://forums.balena.io/t/update-offered-to-device-but-only-applied-if-accepted/3363 "2018-06-22T05:00:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krix](https://avatars.discourse-cdn.com/v4/letter/k/b9bd4f/32.png) [@krix](https://forums.balena.io/u/krix)\
**Post date:** [June 22, 2018, 5:00am UTC](https://forums.balena.io/t/update-offered-to-device-but-only-applied-if-accepted/3363/1 "2018-06-22T05:00:50Z")

</div>

I would like a similar behaviour as we all experience with our smart phones:  
The device user interface once in a while notifies about an optional software update. The user may then accept it in his own time or ignore it completely.

Ultimately I would like to:

1. from CLI or web interface define for each device which release is offered as suggested “software upgrade”.
2. from my device application query the hypervisor if there is any suggested “software upgrade”, and if so retrieve information about this (for example a version number) to present for the user.
3. install the upgrade if the user accepts it, otherwise leave it as is.

Is this possible with [resin.io](http://resin.io)?

---

<div class="post-metadata">

**Author:** ![sqweelygig](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sqweelygig/32/150_2.png) [@sqweelygig](https://forums.balena.io/u/sqweelygig)\
**Post date:** [June 25, 2018, 4:32pm UTC](https://forums.balena.io/t/update-offered-to-device-but-only-applied-if-accepted/3363/3 "2018-06-25T16:32:34Z")

</div>

The interesting question here is “What/Which UI?”, which in IoT is a challenge. I have devices for which their UI is a gesture, a displayotron hat and pure web-ui.  
That said I think that your application code could quite easily pin its device to a particular build using the API endpoints explored here [https://github.com/resin-io-playground/staged-releases](https://github.com/resin-io-playground/staged-releases) and know what the latest build is using the endpoint here [https://docs.resin.io/reference/api/resources/application/](https://docs.resin.io/reference/api/resources/application/) and then it’s up to whatever UI you are using to communicate the difference and understand the response.

---

<div class="post-metadata">

**Author:** ![krix](https://avatars.discourse-cdn.com/v4/letter/k/b9bd4f/32.png) [@krix](https://forums.balena.io/u/krix)\
**Post date:** [January 7, 2019, 8:56am UTC](https://forums.balena.io/t/update-offered-to-device-but-only-applied-if-accepted/3363/5 "2019-01-07T08:56:17Z")

</div>

Another user asked a very similar question [#4590](https://forums.balena.io/t/update-when-user-interacts/4590)
