# Setting Mqtt url through API

**URL:** <https://discourse.nodered.org/t/setting-mqtt-url-through-api/17623>\
**Category:** General\
**Created:** [7 November 2019 09:25 UTC](https://discourse.nodered.org/t/setting-mqtt-url-through-api/17623 "2019-11-07T09:25:40Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [7 November 2019 09:53 UTC](https://discourse.nodered.org/t/setting-mqtt-url-through-api/17623/4 "2019-11-07T09:53:07Z")

</div>

You could use the Admin API to get the full flow configuration, modify it however you want, and then post it back.

[https://nodered.org/docs/api/admin/methods/get/flows/](https://nodered.org/docs/api/admin/methods/get/flows/)

[https://nodered.org/docs/api/admin/methods/post/flows/](https://nodered.org/docs/api/admin/methods/post/flows/)

---

_[View the full topic](https://discourse.nodered.org/t/setting-mqtt-url-through-api/17623)._
