Upsert Batch Categories

Inserts a list of categories.
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 category by query.

❗️

Take notice!

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

Body request example:

[
    {
        "name": "Categoria Teste",
        "code": "1234-teste",
        "description": "Uma categoria de teste",
        "url": "categoria-teste",
        "clientId": "neodocs",
        "hexColor": "#ffffff",
        "imageUrl": "https://dev-lori.neomode.com.br/assets/img/logo_s.png",
        "iconUrl": "https://dev-lori.neomode.com.br/assets/img/logo_s.png",
        "order": 12
    }
]

Fields description:

FieldTypeDescription
nameFloatCategory name
codeFloatCategory code
urlStringCategory address
clientIdStringClient ID
hexColorHexadecimalCategory color definition
imageUrlStringThe category image address
iconUrlStringThe category icon address
orderIntThe order where it appears on app

📘

Result

A 204- No Content result means that the product was successfully insert.

Language
Authorization
Basic
base64
:
URL