---
title: "Create/Update a product"
method: POST
path: "/products"
tags: ["Ecommerce"]
---

# Create/Update a product

`POST /products`

## Request body

- CreateUpdateProduct
  - `id` string, string, required — Product ID for which you requested the details
  - `name` string, string, required — Mandatory in case of creation**. Name of the product for which you requested the details
  - `url` string, string — URL to the product
  - `imageUrl` string, string — Absolute URL to the cover image of the product
  - `sku` string, string — Product identifier from the shop
  - `price` number, float — Price of the product
  - `categories` string[] — Category ID-s of the product
  - `parentId` string, string — Parent product id of the product
  - `metaInfo` object — Meta data of product such as description, vendor, producer, stock level. The size of cumulative metaInfo shall not exceed **1000 KB**. Maximum length of metaInfo object can be 10.
  - `updateEnabled` boolean — Facilitate to update the existing category in the same request (updateEnabled = true)
  - `deletedAt` string — UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop's database
  - `isDeleted` boolean — product deleted from the shop's database

## Response `201`

Product created

- CreateProductModel
  - `id` integer — ID of the Product when a new product is created

## Other responses

- `204` — Product updated
- `400` — bad request

---

[API](https://skmtc.net/getbrevo/apis/brevo-api.md) · [All operations](https://skmtc.net/getbrevo/apis/brevo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbrevo/brevo-api/versions/2aec3cf66501/schema)
