# How to create momentary device via API

**URL:** <https://forum.bondhome.io/t/how-to-create-momentary-device-via-api/2854>\
**Category:** BOND Setup and Hardware\
**Created:** [November 23, 2021, 9:24pm UTC](https://forum.bondhome.io/t/how-to-create-momentary-device-via-api/2854 "2021-11-23T21:24:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![duff](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@duff](https://forum.bondhome.io/u/duff)\
**Post date:** [November 23, 2021, 9:24pm UTC](https://forum.bondhome.io/t/how-to-create-momentary-device-via-api/2854/1 "2021-11-23T21:24:16Z")

</div>

We have a ceiling fan with light that has an option to click the button for light toggle or hold it down to cycle brightness. The Bond app’s UI wouldn’t let me configure for anything but the light toggle, but I would like to set the brightness with a momentary button\_type via the API. I haven’t been able to locate any good information on the necessary configuration options for momentary buttons, though. Does anyone have an example they could share?
