Upsert Product Characteristic

Inserts a product characteristic.
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 characteristic by query.

❗️

Take notice!

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

Request body example

[
    {
        "productId": "409027D7-D72B-4FF9-AAF2-00055901DE9A",
        "key": "Cor",
        "value": "Vermelho",
        "order": 0,
        "hexColor": "#FFFFFF",
        "displayOnCatalog": 1,
        "isDeleted": 0
    }
]

Fields Description

FieldTypeDescription
productIdGuidProduct ID
keyStringA key of characteristic
valueStringThe value of a characteristic key
orderStringThe order where it appears on catalog
hexColorstringCharacteristic color defined
displayOnCatalogBooleanIf the characteristic displays on catalog
isDeletedBooleanIf the product characteristic is deleted or not

📘

Result

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

Language
Authorization
Basic
base64
:
URL