Trouble with GRPC setup - "schema violation"


I’m trying to follow this guide ( to setup GRPC but having some issues.

I run this:
curl -X POST localhost:8001/services --data name=grpc --data protocol=grpc --data host=localhost --data port=50051

and the response is:
{“message”:“schema violation (host: invalid value: localhost --data)”,“name”:“schema violation”,“fields”:{“host”:“invalid value: localhost --data”},“code”:2}curl: (6) Could not resolve host: port=50051

It seems to be complaining about the way I submitted the services API call, but I’ve used the example in the guide (except that I’ve changed the port number of where my service runs on). Is this error due to the port number? or something else?