---
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.
  - `active` boolean, required — Product is active?

## 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.
    - `active` boolean — Product active.
    - `createdAt` unknown

---

[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/303f997b1492/schema)
