Trouble with GRPC setup - "schema violation"

Hi,

I’m trying to follow this guide (https://docs.konghq.com/2.0.x/getting-started/configuring-a-grpc-service/#1-single-grpc-service-and-route) 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?

Thanks,

Kw