---
title: "Create a product property"
method: POST
path: "/api/product-properties"
tags: ["Product Properties"]
---

# Create a product property

`POST /api/product-properties`

## Request

- Base URL: `https://api.retraced.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.retraced.com/api/product-properties`
- Auth: none declared

Creates a property named `name` in `category` (e.g. `brands`, `departments`, `seasons`) for `companyId` — the caller's own company or one the caller is linked to, else 404 `invalid_company_id` (legacy accepted any company) — and queues its copy into the style properties. 409 `duplicated_product_property` when the company already has that name in that category. Answers 201 with the property as stored, in the `{ data, metadata }` envelope (legacy answered the bare record). Unknown body keys are ignored, as in legacy.

## Request body

- object
  - `name` string, required
  - `companyId` string, required
  - `category` string, required

## Response `201`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required: True when the request succeeded.
  - `data` object, required
    - `id` string, required
    - `name` string, required
    - `category` string, nullable, required
    - `companyId` string, nullable, required
    - `createdAt` string, date-time, nullable, required
    - `createdByUserId` string, nullable, required
    - `createdByCompanyId` string, nullable, required
    - `updatedAt` string, date-time, nullable, required
    - `updatedByUserId` string, nullable, required
    - `updatedByCompanyId` string, nullable, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `404`: Default Response
- `409`: Default Response

## Changes

> 108 revisions in range; 2 not diffed.

- **2026-10-18** `d849442cd8d2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/retraced/apis/api-reference/changes/api/product-properties/post.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) - [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/retraced/apis/api-reference/revisions/83309c4abd20?raw)
