Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleRequest body format:
Code Block
languagejson
{
  "vendor_code": "string",
  "name": "string",
  "description": "string",
  "image_path": "string",
  "availability": "in_stock",
  "link": [
    "string"
  ],
  "find_store_action": "string",
  "add_to_cart_action": "string",
  "layout": "vertical",
  "application_type": [
    "wall"
  ],
  "regular_price": [
    33.12
  ],
  "promotional_price": [
    33.12
  ],
  "rapport": 0,
  "rapport_shift": 0,
  "width": 0,
  "length": 0,
  "reverse_180": false,
  "mural": false,
  "transparency": 0,
  "context": [
    "Москва"
  ],
  "model": "model_path",
  "material_maps": {
    "normal": "path_here_normal",
    "color": "path_here_normal",
    "specular": "path_here_specular",
    "displacement": "path_here_displacement",
    "material": "material_path"
  }
}

Expand
titleRequest example

CURL:

Code Block
curl --location --request PATCH 'https://pim-client.wizart.ai/api/v2/collection/<string>/article/<string>' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <Bearer Token>' \
--data-raw '{
  "vendor_code": vendor_code
}'
Expand
titleResponse example
Code Block
languagejson
{
   "data":{
      "uuid":"923c347e-1d2d-40f9-b1a3-2c1929471591",
      "application_type":[
         "wall"
      ],
      "name":"When In Rome Wallpaper",
      "description":"",
      "original_locale":"en",
      "vendor_code":"WCMROME4-PM",
      "image_path":"pim-data\\/6319f9d8-8389-4cc2-9d6d-0affa507d54e\\/7674\\/wheninrome_12ftx8ft.jpg",
      "availability":"in_stock",
      "link":[
         "https:\\/\\/mitchellblack.com\\/products\\/when-in-rome-mb-mural?_pos=1&_sid=8ba603c54&_ss=r"
      ],
      "layout":"vertical",
      "regular_price":null,
      "promotional_price":null,
      "rapport":null,
      "rapport_shift":null,
      "mural":false,
      "reverse_180":false,
      "transparency":null,
      "context":null,
      "currency_by_context":null,
      "width":2.4384,
      "product_width":3.66,
      "length":null,
      "source_uuid":"6319f9d8-8389-4cc2-9d6d-0affa507d54e",
      "pattern_length":2.44,
      "original_data":{
         "link":"https:\\/\\/mitchellblack.com\\/products\\/when-in-rome-mb-mural?_pos=1&_sid=8ba603c54&_ss=r",
         "name":"When In Rome Wallpaper",
         "width":"2.4384",
         "image_path":"pim-data\\/6319f9d8-8389-4cc2-9d6d-0affa507d54e\\/7674\\/wheninrome_12ftx8ft.jpg",
         "vendor_code":"WCMROME4-ST",
         "product_width":"3.6576",
         "pattern_length":"2.4384",
         "product_length":"2.4384"
      },
      "generated_data":{
         "data":[
            {
               "id":"923c347e-1d2d-40f9-b1a3-2c1929471591",
               "type":"metadata",
               "relationships":{
                  "colors":{
                     "data":[
                        {
                           "id":"4f193be0-8a05-4048-b4f4-ae29be366ca5",
                           "type":"colors"
                        },
                        {
                           "id":"647ce132-b7db-4bed-9c63-6eeeb7289840",
                           "type":"colors"
                        },
                        {
                           "id":"33374c92-8922-41ae-8be8-d742a38c4ab7",
                           "type":"colors"
                        },
                        {
                           "id":"3e3b74ae-b55d-4082-8903-b856e7fa817f",
                           "type":"colors"
                        },
                        {
                           "id":"5846b278-b58e-4a91-8b40-599f64f29a6d",
                           "type":"colors"
                        },
                        {
                           "id":"770de981-9222-4055-bda1-1b65cbadc0d5",
                           "type":"colors"
                        }
                     ]
                  },
                  "styles":{
                     "data":[
                        {
                           "id":"77ac24fc-3a61-4ae7-992b-42e3fb637a52",
                           "type":"styles"
                        }
                     ]
                  },
                  "palettes":{
                     "data":[
                        {
                           "id":"4a81b489-87d3-44cc-aa74-b1b1b3942fec",
                           "type":"palettes"
                        }
                     ]
                  },
                  "pattern_size":{
                     "data":{
                        "id":"5ae701fd-4c16-46f6-8949-ba4d7206281f",
                        "type":"pattern_size"
                     }
                  }
               }
            }
         ],
         "included":[
            {
               "id":"4f193be0-8a05-4048-b4f4-ae29be366ca5",
               "type":"colors",
               "attributes":{
                  "color":"Red",
                  "family":"Pastel",
                  "weight":0.16709518432617188,
                  "gradient":8,
                  "raw_color":[
                     245.87119603680114,
                     177.93443371458577,
                     174.57425290505216
                  ]
               }
            },
            {
               "id":"647ce132-b7db-4bed-9c63-6eeeb7289840",
               "type":"colors",
               "attributes":{
                  "color":"Red",
                  "family":"White",
                  "weight":0.21143722534179688,
                  "gradient":10,
                  "raw_color":[
                     253.2222202175835,
                     241.05448608079095,
                     240.29341295758385
                  ]
               }
            },
            {
               "id":"33374c92-8922-41ae-8be8-d742a38c4ab7",
               "type":"colors",
               "attributes":{
                  "color":"Red",
                  "family":"Pastel",
                  "weight":0.16114425659179688,
                  "gradient":9,
                  "raw_color":[
                     250.90410245484458,
                     222.70577373766068,
                     221.24557914920814
                  ]
               }
            },
            {
               "id":"3e3b74ae-b55d-4082-8903-b856e7fa817f",
               "type":"colors",
               "attributes":{
                  "color":"Red",
                  "family":"Pastel",
                  "weight":0.1846923828125,
                  "gradient":8,
                  "raw_color":[
                     247.5152015862525,
                     192.7087739590218,
                     189.97936632518176
                  ]
               }
            },
            {
               "id":"5846b278-b58e-4a91-8b40-599f64f29a6d",
               "type":"colors",
               "attributes":{
                  "color":"Red",
                  "family":"Pale",
                  "weight":0.10802459716796875,
                  "gradient":7,
                  "raw_color":[
                     244.10957694752454,
                     161.1636768133343,
                     157.04735503919767
                  ]
               }
            },
            {
               "id":"770de981-9222-4055-bda1-1b65cbadc0d5",
               "type":"colors",
               "attributes":{
                  "color":"Red",
                  "family":"Pastel",
                  "weight":0.16760635375976562,
                  "gradient":9,
                  "raw_color":[
                     249.13373694152992,
                     207.04092222955595,
                     204.94096092131917
                  ]
               }
            },
            {
               "id":"5ae701fd-4c16-46f6-8949-ba4d7206281f",
               "type":"pattern_size",
               "attributes":{
                  "size":"large"
               }
            },
            {
               "id":"77ac24fc-3a61-4ae7-992b-42e3fb637a52",
               "type":"styles",
               "attributes":{
                  "name":"damask",
                  "weight":"1.0"
               }
            },
            {
               "id":"4a81b489-87d3-44cc-aa74-b1b1b3942fec",
               "type":"palettes",
               "attributes":{
                  "color":"Red",
                  "weight":1
               }
            }
         ]
      },
      "product_type":{
         "uuid":"6640163e-e61b-43ed-ae9f-6d7ae83bc370",
         "code":"wall_mural"
      },
      "collection":{
         "uuid":"7d1c2f99-0294-4d31-a8be-9c4e92d5da03",
         "name":"Joyfire by Beth Glover",
         "image_path":"pim-data\\/6319f9d8-8389-4cc2-9d6d-0affa507d54e\\/covers\\/collections\\/Remake_Joyfire_Adrift_cover_1670604102.jpg",
         "0":"7d1c2f99-0294-4d31-a8be-9c4e92d5da03"
      },
      "brand":{
         "uuid":"13806e8b-e8b4-4d8c-a506-058343e82cbb",
         "name":"Mitchell Black Home",
         "country_uuid":null,
         "image_path":"pim-data\\/6319f9d8-8389-4cc2-9d6d-0affa507d54e\\/92795\\/wallflower-lilac_large.jpg"
      },
      "scene_data":[
         
      ],
      "preview_image_path":"pim-data\\/6319f9d8-8389-4cc2-9d6d-0affa507d54e\\/7674\\/wheninrome_12ftx8ft.jpg",
      "relationships":{
         "collections":{
            "data":[
               {
                  "type":"collection",
                  "uuid":"7d1c2f99-0294-4d31-a8be-9c4e92d5da03",
                  "attributes":{
                     "name":"Joyfire by Beth Glover",
                     "image_path":"pim-data\\/6319f9d8-8389-4cc2-9d6d-0affa507d54e\\/covers\\/collections\\/Remake_Joyfire_Adrift_cover_1670604102.jpg"
                  },
                  "relationships":{
                     "brand":{
                        "data":{
                           "type":"brand",
                           "uuid":"13806e8b-e8b4-4d8c-a506-058343e82cbb",
                           "attributes":{
                              "name":"Mitchell Black Home",
                              "country_uuid":null,
                              "image_path":"pim-data\\/6319f9d8-8389-4cc2-9d6d-0affa507d54e\\/92795\\/wallflower-lilac_large.jpg"
                           }
                        }
                     }
                  }
               }
            ]
         }
      },
      "product_length":2.4384,
      "country":null,
      "material":null,
      "color":"Red",
      "texture":null,
      "interior":null,
      "style":null,
      "price_per_m2":null,
      "promotional_price_per_m2":null,
      "repeatable":false,
      "customized_size":false,
      "width_options":null,
      "height_options":null,
      "pattern":"damask",
      "features":null,
      "pattern_scale":"large",
      "coating":null,
      "base":null,
      "property_values":{
         "en":{
            "name":"When In Rome Wallpaper",
            "color":"Red",
            "pattern":"damask",
            "collection":{
               "39113772412962641":39113772412962641
            },
            "description":"",
            "pattern_scale":"large"
         },
         "repeatable":false,
         "product_length":2.4384,
         "customized_size":false
      }
   }
}