How to define the endpoint for OPC-UA with payload?

I'm interested in knowing whether it's feasible to set the OPC UA client's endpoint dynamically using the payload. My goal is to simplify the code structure since I have more than 200 OPC UA clients.

I expect you mean OPC UA server that client should connect.
Look OPCUA-TEST-NODES.json and Reconnect tab.