如何使用Salesforce OCAPI 19.1插入产品图像?

时间:2019-03-26 04:35:20

标签: java api salesforce commerce

我正在尝试将应用程序中的新产品插入我的Salesforce Commerce(沙盒)中。当我使用Data API 19.3 Put / products时,它正在插入而不是图像。

这是我正在使用的json的格式(请参见下文)。让我知道是否错过了什么。谢谢!

    "image": {
  "path": "large/6288348_sd.jpg",
  "alt": "Samsung - 50\" Class - LED - NU6900 Series - 2160p - Smart - 4K UHD TV with HDR, , hi-res",
  "abs_url": "<my image location in site>",
  "dis_base_url": "<my image location in site>",
  "title": "Samsung - 50\" Class - LED - NU6900 Series - 2160p - Smart - 4K UHD TV with HDR, "
 },
 "image_groups": [
  {
   "images": [{
    "path": "large/6288348_sd.jpg",
    "alt": "Samsung - 50\" Class - LED - NU6900 Series - 2160p - Smart - 4K UHD TV with HDR, , hi-res",
    "_type": "media_file",
    "abs_url": "<my image location in site>",
    "title": "Samsung - 50\" Class - LED - NU6900 Series - 2160p - Smart - 4K UHD TV with HDR, ",
    "dis_base_url": "<my image location in site>"
   }],
   "_type": "image_group",
   "view_type": "hi-res"
  }
 ]

0 个答案:

没有答案