I am new to magento. I am facing an issue will trying to create customer using curl command. I am passing the correct json values as customer data as well, but still getting decoding error.Can some one please help!
This is the command that I am using for creating the customer:
curl -X POST "http://127.0.0.1/magento2/index.php/rest/V1/customers" -H "Authorization: Bearer pvcp6auic4likpucpi07peas89hxivhe" -H "Content-Type: application/json" -d "{"customer":{"email":email@gmail.com","firstname":"first","lastname":"last","storeId":1,"websiteId":1}}"
The error thrown is {"message":"Decoding error."}