Setting Mqtt url through API

Hello all,
I have a doubt regarding MQTT in-node, how can we set the url of mqtt in-node through an API?
Can somebody help me out with this

The MQTT node does not support dynamically change the broker it connects to.

There is a high-level design for some changes to allow that, but as yet, that is as far as it has got.

Ya got it it won't change dynamically but we can change the URL through API using Postman or some other thing?

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/post/flows/