Sending Flows via Admin API

I am trying to create an installation script which creates my Node red dashboard. I am using the Dashboard 2 library from Flow Fuse https://dashboard.flowfuse.com/.
My approach is to do it via the admin api with the following command

curl -X POST http://localhost/flow -d @Frontend_Flow.json --header 'content-type: application/json'

I created the json file with the export button from the gui. When I make the request I get the error missing node property. This property is also not created when exporting. Is there another way to export the entire flow in the correct format?