通过API在BigCommerce商店中添加产品时出错

通过API在BigCommerce商店中添加产品时出错,api,bigcommerce,Api,Bigcommerce,我想通过BigCommerceAPI在我们的Bigcommerce商店中添加产品 我已使用以下API在我们的商店中添加产品:- 网址: 类型:邮政 数据:row-json { "name": "Plain T-Shirt", "type": "physical", "description": "This timeless fashion staple will never go out of style!", "price": "29.99", "cate

我想通过BigCommerceAPI在我们的Bigcommerce商店中添加产品

我已使用以下API在我们的商店中添加产品:-

网址:

类型:邮政

数据:row-json

{
    "name": "Plain T-Shirt",
   "type": "physical",
    "description": "This timeless fashion staple will never go out of style!",
    "price": "29.99",
    "categories": [21],
    "availability": "available",
    "weight": "0.5"
}
我收到以下错误:

415-指定的输入内容类型无效

注意:我被要求输入用户名和密码。我从旧API设置中输入了正确的用户名和令牌


是否有人可以帮助解决此问题?

此错误是由于未指定内容类型标题造成的。BigCommerce接受XML或JSON作为类型

您是否有内容类型标题?您需要指定它是xml还是json。谢谢@ALYS。成功了……)(y) 你能回答一下吗。所以,我可以接受。。