put https://{environment}.neomode.com.br/management/catalog/skus//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
Field | Type | Description |
---|---|---|
skuId | String | Sku ID |
order | String | The order where the attribute appears on catalog |
type | Enum | Attribute type, its defined by: 0 ="Text", 1= "Color" or 2= "Dropdown" |
title | String | Attribute title |
value | String | Attribute value |
label | String | Attribute label |
Result
A 204- No Content result means that the stock was successfully updated.