You’re sending the wrong headers, the -d
options will default to sending a content type of application/x-www-form-urlencoded
and you want to send JSON.
You should be also sending an additional header: -H "Content-Type: application/json"
In addition and like mentioned in the comments, you’ll need to include more than just the connection information.