1. This error occurs due to bug in "backend/services/OrganizationsService.j" or notification.js files. It would be good if you add console in the files and understand the flow. Another suggestion is to enable default notifications and then check it.
2. try the following with more parameters
curl -v -k -X 'POST' \
'
https://local.flexiwan.com:3443/api/organizations' \
-H 'accept: application/json' \
-H 'APIKEY: PASTE_YOUR_KEY' \
-H 'Authorization: Bearer PASTE_YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "name",
"description": "description",
"group": "group",
"encryptionMethod": "psk",
"vxlanPort": 4789,
"tunnelRange": "10.100.0.0"
}'
3. also make sure that accesskey should be generated and used with the above api .