put https://{environment}.neomode.com.br/management/catalog/products//skus/
Updates a product sku by its unique ID.
Take notice!
This request updates all values already set. Pay attention and don't have anything lost!
Request body example:
{
"code": "1234-codigo",
"auxCode" : "1234-aux",
"barcode": "000000040433",
"name": "Unico",
"minStock": 0,
"isActive" : true,
"imageUrl": "https://dev-lori.neomode.com.br/assets/img/logo_s.png",
"images" :
[
{
"order" : 1,
"imageUrl" : "https://dev-lori.neomode.com.br/assets/img/logo_s.png"
}
],
"Attributes" :
[
{
"type" : "Text", // Text, Color, Dropdown
"title" : "Tamanho",
"value" : "P",
"label" : "P",
"order" : 1
}
]
}
Fields description:
Field | Type | Description |
---|---|---|
id | Guid | Sku ID |
productId | Guid | Product ID |
name | String | Sku name |
hexColor | Hexadecimal | Product sku color defined |
isActive | Boolean | If the collection is active or not |
images | Array Object | The images of this sku |
clientId | String | The client ID |
code | String | Product sku code |
barcode | String | Product sku barcode |
minStock | Int | Product sku minimum stock |
imageUrl | String | Sku image address |
attributes | Array Object | The sku attributtes array |
type | String | Product sku attribute type |
title | String | Product sku attribute title |
value | String | Product sku attribute value |
label | String | Product sku attribute label |
order | Int | The order where it appears on catalog |
Result
A 204- No Content result means that the product sku was successfully updated.