X post error when trying to test my 1st API

Hi, trying the serverless video tutorial to build my 1st restful api using DynamoDB when I run curl -X POST https://xxxxxx.execute-api.ap-southeast-2.amazonaws.com/dev/xxxx--data ‘{ “text”: “Kitchen” }’ I get error Invoke-WebRequest : A parameter cannot be found that matches parameter ntrying the serverless video tutorial to build my 1st restful api using DynamoDB when I run curl -X POST https://xxxxxx.execute-api.ap-southeast-2.amazonaws.com/dev/xxxx--data ‘{ “text”: “Kitchen” }’ I get error Invoke-WebRequest : A parameter cannot be found that matches parameter name ‘X’. It has been suggested that I try locally but was hoping to get an idea where I might be going wrong. Being my 1st attempt, it’s something I’ve done wrong for sure. I am trying to use slightly different fields to the example. Thanks in advance

1 Like

I am using Powershell on Windows machine but have also tried in the terminal window of VS Code & GitBash & same problem exists.