My colleague Sanghmitra has already attached the Protector REST API guide, however to add further value to her comment and to be more specific below is the curl command for creating the data flow in protector through REST API using curl command.
curl --insecure --cookie demosession
"https://demomaster/API/7.1/master/DataFlowHandler/objects/DataFlows" --
data @createdataflow.json --header "Content-Type: application/json"
------------------------------
Prasenjit Chatterjee
Non-Hitachi Vantara
------------------------------