# How to duplicate flows with different device ID

**URL:** https://discourse.nodered.org/t/how-to-duplicate-flows-with-different-device-id/55166
**Category:** Developing Nodes
**Tags:** http-request
**Created:** [14 December 2021 11:50 UTC](https://discourse.nodered.org/t/how-to-duplicate-flows-with-different-device-id/55166 "2021-12-14T11:50:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Shiny](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@Shiny](https://discourse.nodered.org/u/Shiny)
#### Post date: [14 December 2021 11:50 UTC](https://discourse.nodered.org/t/how-to-duplicate-flows-with-different-device-id/55166/1 "2021-12-14T11:50:21Z")

</div>

I'm using /flow API to import a flow with few nodes.

I'm looping this API in for loop by which I'm trying to duplicate the flow with few different parameters. But I'm always getting error as {"code":"unexpected\_error","message":"duplicate id"}

Please advise.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [12 February 2022 11:50 UTC](https://discourse.nodered.org/t/how-to-duplicate-flows-with-different-device-id/55166/2 "2022-02-12T11:50:36Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
