Reputation: 21
Trying to create a product rule using Postman on BigCommerce
. All my other queries to BC work fine but on this one I receive the
[{"status":415,"message":"The specified input content type is not valid."}]
Doesn't seem to matter what is in the actual body, even if it is empty.
call: https://api.bigcommerce.com/stores/xxxxxxxxx/v2/products/34371/rules
headers:
X-Auth-Client:xxxxxxxxxxxxxxxxxxxxxxxx
X-Auth-Token:xxxxxxxxxxxxxxxxxxxxxxx
Accept:application/json
Content-Type:application/json
Upvotes: 1
Views: 425
Reputation: 21
I found that the issue was with Postman. Postman was changing Content-Type: application/json to multipart/form-data behind the scenes.
Upvotes: 1