As an example, create a JSON file, params.jsonparams.json, and add this content to it:
[ { "environment": "Devel", "description": "Machine for test, please do not delete!" } ] Then you run this command:
curl -v -H "Content-Type: application/json" -X POST --data @params.json -u your_username:your_password http://localhost:8000/env/add_server curl -v -H "Content-Type: application/json" -X POST --data @params.json -u your_username:your_password http://localhost:8000/env/add_server