Examples how to access data layer nodes via Node-RED using our "node-red-contrib-ctrlx-automation" nodes can be found in the corresponding documentation of GitHub.
Access with standard http requests via the REST API can be found in general how to "Using REST API of ctrlX CORE". Several examples can be found here in this community.
Only using Node-RED no data layer nodes can be created. See also this topic.
There are also how tos for the ctrlX CORE - Node-RED app for further applications.