Hi all,
Newbie here. Trying to use swagger to create a robot with the following curl on our testing env:
curl -v "https://******/odata/Robots" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
--header "Authorization: Bearer eyJhbGciOiJSUzI1NiI...sImtpZCI6I4g" \
-d '{ \
"MachineName": "testing_machine_02", \
"Name": "robot_05_name_01", \
"Type": "NonProduction", \
"HostingType": "Standard", \
"Username": "robotOps" \
}'
All I am getting is “HTTP/1.1 400 Bad Request” followed by
“{“message”:“robotDto must not be null”,“errorCode”:0,“traceId”:“003…9a69”,“resourceIds”:null}%”
- I have admin rights.
- Machine search and machine creation work no problem with similar requests.
- Using similar values on the web works no problem and creates the robot.
Can’t find any doc on how to do it properly, what the error might mean or some basic examples.
Any pointer appreciated