Add nodes configuration by API

Good morning,

is it possible add nodes configuration (ex. connection to mqtt... ) by api?
For example:
I would like to add a list of connections from api and then find these connections within the node configuration.

Or is it possible import json configuration nodes from API?

thank you for help,
Donald