put https://{environment}.neomode.com.br/management/catalog/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:
Field | Type | Description |
---|---|---|
name | Float | Category name |
code | Float | Category code |
url | String | Category address |
clientId | String | Client ID |
hexColor | Hexadecimal | Category color definition |
imageUrl | String | The category image address |
iconUrl | String | The category icon address |
order | Int | The order where it appears on app |
Result
A 204- No Content result means that the product was successfully insert.