API create lab
Posted: Thu Mar 25, 2021 6:52 pm
Hey,
i have trouble to use the API. I'm not able to create a lab. Even when i use the example from https://www.eve-ng.net/index.php/docume ... ve-ng-api/
Version: 4.0.1-16-PRO
i have trouble to use the API. I'm not able to create a lab. Even when i use the example from https://www.eve-ng.net/index.php/docume ... ve-ng-api/
Code: Select all
curl -k -s -b /tmp/cookie -c /tmp/cookie -X POST -d '{"username":"admin","password":"eve"}' https://192.168.188.92/api/auth/login
{"code":200,"status":"success","message":"User logged in (90013)."}%
Code: Select all
curl -k -s -c /tmp/cookie -b /tmp/cookie -X POST -d '{"path":"/,"name":"NewLab","version":"1","author":"User1 Lastname","description":"A new demolab","body":"Lab usage and guide"}' -H 'Content-type: application/json' https://192.168.188.92/api/labs
{"code":400,"status":"fail","message":"Cannot create lab, invalid or missing mandatory parameters (60017)."}%