# Bulk attribute changes

**URL:** <https://forums.losant.com/t/bulk-attribute-changes/1193>\
**Category:** Feature Request\
**Created:** [October 19, 2018, 5:53pm UTC](https://forums.losant.com/t/bulk-attribute-changes/1193 "2018-10-19T17:53:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul\_wareham](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@paul\_wareham](https://forums.losant.com/u/paul_wareham)\
**Post date:** [October 19, 2018, 5:53pm UTC](https://forums.losant.com/t/bulk-attribute-changes/1193/1 "2018-10-19T17:53:48Z")

</div>

I have a series of devices that have the same attributes. There are several dozen attributes for each device. I would like to add a number of attributes to all the devices; the additions are all the same. My options seem to be:

1. Manually add the attributes to each existing device one by one
2. Delete the existing devices. Manually add the attributes to one existing device, and then clone it many times to replace the deleted devices.
3. Use a workflow to automate the above.

Are there other ways to bulk update device attributes?

Thanks

Paul

---

<div class="post-metadata">

**Author:** ![Brandon\_Cannaday](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/brandon_cannaday/32/14_2.png) [@Brandon\_Cannaday](https://forums.losant.com/u/Brandon_Cannaday)\
**Post date:** [October 19, 2018, 5:59pm UTC](https://forums.losant.com/t/bulk-attribute-changes/1193/2 "2018-10-19T17:59:27Z")

</div>

Bulk updates are a high priority task for us to implement. At the moment, I would recommend using a workflow or directly using the [Losant API](https://docs.losant.com/rest-api/device/#patch) to perform the task. Let me know if you’d like to see an example of a workflow that does this. We can create one pretty quick that you can import and modify.

---

<div class="post-metadata">

**Author:** ![paul\_wareham](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@paul\_wareham](https://forums.losant.com/u/paul_wareham)\
**Post date:** [December 19, 2018, 9:17pm UTC](https://forums.losant.com/t/bulk-attribute-changes/1193/3 "2018-12-19T21:17:24Z")

</div>

hi @Brandon_Cannaday, an example workflow on this would be great.

---

<div class="post-metadata">

**Author:** ![paul\_wareham](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@paul\_wareham](https://forums.losant.com/u/paul_wareham)\
**Post date:** [December 22, 2018, 3:17am UTC](https://forums.losant.com/t/bulk-attribute-changes/1193/4 "2018-12-22T03:17:21Z")

</div>

Friendly reminder 🙂

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [December 22, 2018, 11:43pm UTC](https://forums.losant.com/t/bulk-attribute-changes/1193/5 "2018-12-22T23:43:39Z")

</div>

Bulk update workflow is attached. You will need to …

1. [Import](https://docs.losant.com/workflows/overview/#import-export) the workflow into your list of [application workflows](https://docs.losant.com/workflows/application-workflows/).
2. Enable the workflow under the “Properties” tab.
3. Either …  
a. Update the tag query in the [Device: Get node](https://docs.losant.com/workflows/data/get-device/) to match the query for the devices you want to modify, OR  
b. If you want to apply this change to all the devices in your application (max. 1000), remove the connectors between the [Virtual Buttons](https://docs.losant.com/workflows/triggers/virtual-button/) and the Device: Get node and instead hook the buttons up to the [Losant API](https://docs.losant.com/workflows/data/losant-api/) node alongside it.
4. Enter the contents of the [Loop node](https://docs.losant.com/workflows/logic/loop/#viewing-loop-contents) and find the [Device: Update node](https://docs.losant.com/workflows/data/update-device/).
5. In the Device: Update node’s config, add the attribute(s) and data type(s) you want to add to all your devices.
6. [Save and Deploy](https://docs.losant.com/workflows/application-workflows/#saving-and-deploying) the workflow.
7. Click the “Test Query” Virtual Button and view the `devices` property in the [Debug Log](https://docs.losant.com/workflows/outputs/debug/#viewing-debug-output), and ensure that your query returned the devices you intended.
8. When satisfied you’ve built your query correctly, click the “Bulk Update!” virtual button.

[bulk-update-workflow-develop.flow](https://forums.losant.com/uploads/short-url/4OLgaOztTGRO24SuguEuDh9xF3D.flow) (6.9 KB)

---

<div class="post-metadata">

**Author:** ![paul\_wareham](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@paul\_wareham](https://forums.losant.com/u/paul_wareham)\
**Post date:** [August 31, 2019, 11:26pm UTC](https://forums.losant.com/t/bulk-attribute-changes/1193/6 "2019-08-31T23:26:01Z")

</div>

@Brandon_Cannaday

Checking in to see if there is any further though on adding a Bulk Device Update feature?

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [September 3, 2019, 2:24pm UTC](https://forums.losant.com/t/bulk-attribute-changes/1193/7 "2019-09-03T14:24:09Z")

</div>

Hi @paul_wareham,

I don’t see any changes on this request, but I will add a +1 to the ticket! I will keep you updated on this as well. 😄

Thanks,  
Julia

---

<div class="post-metadata">

**Author:** ![Edward\_Cline](https://avatars.discourse-cdn.com/v4/letter/e/67e7ee/32.png) [@Edward\_Cline](https://forums.losant.com/u/Edward_Cline)\
**Post date:** [February 7, 2020, 9:35pm UTC](https://forums.losant.com/t/bulk-attribute-changes/1193/8 "2020-02-07T21:35:46Z")

</div>

Any movement on this feature? It would be great to have.

---

<div class="post-metadata">

**Author:** ![Stewart\_McCallum](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/stewart_mccallum/32/2490_2.png) [@Stewart\_McCallum](https://forums.losant.com/u/Stewart_McCallum)\
**Post date:** [January 2, 2021, 6:00pm UTC](https://forums.losant.com/t/bulk-attribute-changes/1193/9 "2021-01-02T18:00:35Z")

</div>

this feature would be handy, any progress ?
