jwalton
jwalton

Reputation: 21

BigCommerce [{"status":415,"message":"The specified input content type is not valid."}]

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

Answers (1)

jwalton
jwalton

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

Related Questions