Upsert Sku Attributes

Insert product sku attributes.
A upsert statement verify if already exists a product with the code set on body request and updates an existing product or creates a new one.
This request is an array, so you can insert more than one attribute by query.

❗️

Take notice!

This request updates all values already set. Pay attention and don't have anything lost!

Request body example (Text Type)

[
    {
        "skuId":"C0F77B80-B6EA-48AE-BD6A-000B51E4FD12",
        "type": 0,
        "title": "Tamanho",
        "value ":"GG",
        "label":"GG",
        "order": 1
    }
]

Request body example (Color Type)

[	
	{
    	"skuId":"C0F77B80-B6EA-48AE-BD6A-000B51E4FD12",
      "type" : 1, 
      "title" : "Cor",
      "value" : "#000000",
      "label" : "Preto",
      "order" : 2
	}
]

Fields Description

FieldTypeDescription
skuIdGuidSku ID
orderIntThe order where the attribute appears on catalog
typeEnumAttribute type, its defined by: 0 ="Text", 1= "Color" or 2= "Dropdown"
titleStringAttribute title
valuestringAttribute value
labelstringAttribute label

📘

Result

A 204- No Content result means that the stock was successfully updated.

Language
Authorization
Basic
base64
:
URL