I am using magento2 Rest API to update the quantity of product by sku and testing on postman and it gives error
Content-Type header is invalid.400 Bad Request.
I have generated the consumer key, consumer secret, Access token and Access token secret key.
Below are the setting done in postman -:
Method: PUT
URL: http://127.0.0.1/pos_mage/rest/V1/products/{sku_of_product}
Authorisation: OAuth2.0 and set the access token value
Header: Key: Content-Type and Value: application/json
Body: Key: stockItems and Value : 10
But when i am trying to run the API it gives me error
{ "message": "Content-Type header is invalid." } 400 Bad Request.
I am testing on my localhost.
I have checked many tutorial but still not success-: