---
title: "POST /products"
method: POST
path: "/products"
tags: ["products"]
---

# POST /products

`POST /products`

Create a new product.

## Request body

- PostProducts — Create a new product.
  - `name` string, required — Product name.
  - `code` string — Product code.
  - `category` integer — Category name or id.
  - `price` number, float — Product price.
  - `unit` string — Product unit.
  - `active` boolean, required — Product is active?
  - `customFields` object — Product custom fields.
  - `description` string — Product description (HTML). Will be sanitized before saving.

## Response `201`

Created

- object
  - `data` ProductEntity
    - `id` integer — Product ID.
    - `name` string — Product name.
    - `code` string — Product code.
    - `categoryId` integer — Product category id.
    - `price` number, double — Product price.
    - `unit` string — Product unit.
    - `active` boolean — Product active.
    - `imageUrl` string — Product image URL.
    - `imageThumbUrl` string — Product image thumbnail URL.
    - `createdAt` unknown
    - `customFields` unknown
    - `description` string — Product description (HTML).

---

[API](https://skmtc.net/agendor/apis/agendor-api.md) · [All operations](https://skmtc.net/agendor/apis/agendor-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agendor/agendor-api/revisions/965855d16b06/schema)
